Pwn output errors ! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Pwn output errors ! (
/showthread.php?tid=437116)
Pwn output errors ! -
EthanMason - 14.05.2013

Hello guys i was making a script ..when i'm done i tried to compile it but this window appeared and i didn't know where the errors located at ..can someone help me please ?
Re: Pwn output errors ! -
Guest123 - 14.05.2013
dude, show the line..
Re: Pwn output errors ! -
Stunter007 - 14.05.2013
Show me the code at the line 385
Re : Pwn output errors ! -
EthanMason - 14.05.2013
Here you go Sorry , i thought i posted him
http://i.imgur.com/Ift5G3h.png
Re: Pwn output errors ! -
MP2 - 14.05.2013
pawn Код:
new pid;
if(IsPlayerConnected(pid))
What on earth is that? You're declaring a SECOND playerid variable (which gets initialized to 0) and then checking if ID 0 is connected.
As for the error, you don't have a bracket under the line commented 'SPAZ'.
Re : Pwn output errors ! -
EthanMason - 14.05.2013
thanks for your help it works perfectly now
Re: Pwn output errors ! -
Guest123 - 14.05.2013
pawn Код:
case 4:
if(GetPlayerMoney(playerid)>=2500)
{
SendClientMessage(playerid,COLOR_WHITE,"You ha sucessfully bought first aid kit!");
SetPlayerHealth(playerid,100);
GivePlayerMooney(playerid,-2500);
return 1;
}
else SendClientMessage(playerid,COLOR_WHITE,"You don't have enought money!")
return 1;
}
Код:
rep if i help you :)
Re: Pwn output errors ! -
RajatPawar - 14.05.2013
Also, in the command /gethere - you have wrong SSCANF checking.
You check for
having only ONE variable. It should be