SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 26
Search took 0.00 seconds.
Search: Posts Made By: Wanheda
Forum: Scripting Help 26/01/2019, 09:34 AM
Replies: 2
Views: 160
Posted By Wanheda
Re: Veh teleportation

Code please.
Forum: Scripting Help 25/01/2019, 11:28 PM
Replies: 4
Views: 248
Posted By Wanheda
Re: Insert data with mysql

Can you paste the specific code and not the whole gamemode?
Forum: Scripting Help 25/01/2019, 11:23 PM
Replies: 11
Views: 468
Posted By Wanheda
Re: Disabling cmds

public OnPlayerCommandRecieved(playerid, cmdtext[])
{
if(!Player[playerid][IsLoggedIn])
{
GameTextForPlayer(playerid, "~w~You need to be ~r~logged in ~w~to use commands!", 3000, 4);...
Forum: Scripting Help 25/01/2019, 11:20 PM
Replies: 8
Views: 434
Posted By Wanheda
Forum: Scripting Help 25/01/2019, 07:59 AM
Replies: 4
Views: 378
Posted By Wanheda
Re: IsPlayerInFrontOfPlayer

https://forum.sa-mp.com/showthread.php?t=573961
native IsPlayerFacingPlayer(playerid, targetid, Float:range = 10.0);
Forum: Scripting Help 11/04/2018, 07:18 PM
Replies: 2
Views: 497
Posted By Wanheda
Re: Random Team For player

new teamCount[2], teamid;
foreach(Player, ii)
{
teamid = random(2);
SetPlayerTeam(ii, teamid);
teamCount[teamid] ++;
}

This is what you should relay on. Basically loop through all players...
Forum: Scripting Help 07/04/2018, 04:04 PM
Replies: 5
Views: 533
Posted By Wanheda
Re: Plane flying over san andreas

Use MoveObject (assuming the plane is an object), set the player's camera on that plane object and get the object positions whenever he presses your desired eject button.
Forum: Server Support 09/03/2018, 07:23 PM
Replies: 14,705
Views: 1,868,349
Posted By Wanheda
Forum: Server Support 17/02/2018, 02:14 PM
Replies: 3
Views: 442
Posted By Wanheda
Server variables limit?

Anyone knows what is the limit of SVars? SA:MP limits tend to say that PVars are limited to 800, but what about SVars?
Forum: Server Support 13/02/2018, 12:31 PM
Replies: 5
Views: 2,784
Posted By Wanheda
Re: Failed (/lib/libstdc++.so.6: version `GLIBCXX_3.4.20' not found - CentOS 7

Thanks for replying.
I already tried that, everything is up to date.
I am pretty sure I got the last version of gcc (I just got the server yesterday).
Forum: Server Support 13/02/2018, 12:12 PM
Replies: 5
Views: 2,784
Posted By Wanheda
Failed (/lib/libstdc++.so.6: version `GLIBCXX_3.4.20' not found - CentOS 7

Failed (/lib/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by plugins/log-plugin.so))

I am getting this error while running my server on CentOS 7. I know this error usually occurs...
Forum: Scripting Help 30/01/2018, 05:47 PM
Replies: 6
Views: 420
Posted By Wanheda
Forum: Scripting Help 30/01/2018, 05:37 PM
Replies: 6
Views: 420
Posted By Wanheda
Re: MySQL R40 - Insert statement not working

You are trying to insert 6 values while writing only 5 variables. (missing pBanned)
And by the way, you can just use:
mysql_query(g_SQL, query);
Also, please check your mysql logs and see if...
Forum: Scripting Help 28/01/2018, 08:59 PM
Replies: 5
Views: 349
Posted By Wanheda
Re: Server freez after a server restart

Seems like an infinite loop. Check your OnPlayerConnect for any unwanted timers/loops.
Forum: Scripting Help 28/01/2018, 01:12 PM
Replies: 1
Views: 266
Posted By Wanheda
Re: TextDraw instead of GameTextForPlayer

Just create a player textdraw, show it to the player and set the textdraw string to the wanted value. Should be easy.
Forum: Scripting Help 27/01/2018, 08:22 PM
Replies: 21
Views: 1,667
Posted By Wanheda
Re: Saving system

This is totally useless. He can use just one variable for that.
Forum: Scripting Help 27/01/2018, 07:35 PM
Replies: 3
Views: 435
Posted By Wanheda
Re: Mta objects to SA-MP

Open map.lua using a Notepad or a text file. Then convert it using FFS converter or any other available converter the internet.
Forum: Scripting Help 27/01/2018, 07:33 PM
Replies: 3
Views: 250
Posted By Wanheda
Re: Command sets specific value, not set value.

In all 3 commands, you used different variables comparing to the ones you inserted in the sscanf.
For example, in /setblood you have used the variable "pBlood" comparing to variable "blood" which...
Forum: Scripting Help 27/01/2018, 07:31 PM
Replies: 21
Views: 1,667
Posted By Wanheda
Re: Saving system

I wonder why you are using 2 variables for death and kills?
PlayerKills[killerid]++;
PlayerDeaths[playerid]++;

pInfo[killerid][Kills]++;
pInfo[playerid][Deaths]++;

Remove one of them and...
Forum: Scripting Help 27/01/2018, 07:25 PM
Replies: 2
Views: 195
Posted By Wanheda
Re: invalid expression, assumed zero

new PlayerInfo[MAX_PLAYERS][PlayerInfos];
Forum: Scripting Help 27/01/2018, 07:22 PM
Replies: 3
Views: 250
Posted By Wanheda
Re: Command sets specific value, not set value.

CMD:sethumanity(playerid,params[])
{
if(pInfo[playerid][pAdminLevel] >= 5)
{
new targetid,humanity,string[128];
if(sscanf(params, "ui", targetid,humanity)) return...
Forum: Scripting Help 27/01/2018, 02:21 AM
Replies: 7
Views: 442
Posted By Wanheda
Re: Textdraw Won't hide?

Along with the fix the guy above me metioned, I recommend you delete the "Loading[6]" if you are not showing it to the player at the first place. This could cause hiding some other random textdraw.
Forum: Scripting Help 27/01/2018, 02:19 AM
Replies: 12
Views: 765
Posted By Wanheda
Re: Server falling every 3rd day

When did it start? Try looking for the last code you remember you added before that started happening, and we'll keep from there.
Forum: Server Support 27/01/2018, 02:14 AM
Replies: 14,705
Views: 1,868,349
Posted By Wanheda
Forum: Server Support 25/11/2017, 02:52 PM
Replies: 8
Views: 1,669
Posted By Wanheda
Re: DD/DM - Racing

A new one is coming. When? who knows.. :)
Showing results 1 to 25 of 26

 

All times are GMT. The time now is 02:11 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.