SA-MP Forums Archive
Simple code crashing the server... - 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: Simple code crashing the server... (/showthread.php?tid=362401)



Simple code crashing the server... - Littlehelper - 24.07.2012

-Fixed it myself.


Re: Simple code crashing the server... - Rudy_ - 24.07.2012

try adding
pawn Код:
new lTime,
at top


Re: Simple code crashing the server... - [MM]RoXoR[FS] - 24.07.2012

pawn Код:
if(lTime2 < 1 || lTime2 > 20) return SendClientMessage(playerid,-1,"[*] Values Must Be Between 1-20!");
//Changed  lTIme < 0 to lTime < 1
Also, probably this is causing you to crash, Rotation is in -ve.
pawn Код:
lTimedC4[playerid] = CreateObject(1654,X,Y,Z,-0.90,270.0,0.0,0.0);//CODE
CreateObject(1654,X,Y,Z-0.90,0,270.0,0.0,0.0);//Fix maybe



Re: Simple code crashing the server... - Littlehelper - 24.07.2012

NVM.
-Fixed it myself.


Re: Simple code crashing the server... - Littlehelper - 24.07.2012

-Remove.


Re: Simple code crashing the server... - ReVo_ - 24.07.2012

TimedC4[playerid] = TextDrawCreate(300.0,300.0,szString);
TextDrawTextSize(TimedC4[playerid],0.7,3.0);
TextDrawShowForAll(TimedC4[playerid]);

Why [playerid], this textdraw will be showed to everyone (TextDrawShowForAll) (if u want to show a textdraw just to one player, use PlayerTextdraws)


Re: Simple code crashing the server... - Littlehelper - 24.07.2012

-Remove Please.