Help with pteleon Command - 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: Help with pteleon Command (
/showthread.php?tid=478518)
Help with pteleon Command -
ReD_DeVi - 30.11.2013
hello guys i just scripted a pteleon command when i compiled it shows me an error can you please help me
Код:
C:\Documents and Settings\Administrator\Desktop\Mani\gamemodes\Gamemode.pwn(375) : error 017: undefined symbol "PTELE"
C:\Documents and Settings\Administrator\Desktop\Mani\gamemodes\Gamemode.pwn(375) : warning 215: expression has no effect
C:\Documents and Settings\Administrator\Desktop\Mani\gamemodes\Gamemode.pwn(375) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Administrator\Desktop\Mani\gamemodes\Gamemode.pwn(375) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Mani\gamemodes\Gamemode.pwn(375) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
the lines
pawn Код:
if(PTELE[playerid]==1)
return ShowPlayerDialog(playerid, 9, DIALOG_STYLE_MSGBOX, "{46BEE6}[SuperTDM Info]:", "You've already enabled tele command.Use /teleoff", "Ohkey", "Close");
Re: Help with pteleon Command -
SilentSoul - 30.11.2013
On the top of your script add
pawn Код:
new bool:PTELE[MAX_PLAYERS];
bool is used for getting true or false variables only(0,1) , not for counting++
Re: Help with pteleon Command -
ReD_DeVi - 30.11.2013
Thank YOU !