SA-MP Forums Archive
Problem in gamemode - 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: Problem in gamemode (/showthread.php?tid=369127)



Problem in gamemode - Morkano - 15.08.2012

Quote:

D:\Server\gamemodes\gs.pwn(1665) : error 036: empty statement
D:\Server\gamemodes\gs.pwn(1666) : warning 225: unreachable code
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

And (1665) line
Quote:

if(!strlen(tmp)); return SendClientMessage(playerid,COLOR_YELLOW,"USAGE: /Getid [PLayername]");




Re: Problem in gamemode - Kindred - 15.08.2012

pawn Код:
if(!strlen(tmp)) return SendClientMessage(playerid,COLOR_YELLOW,"USAGE: /Getid [PLayername]");
I removed the semi-colan after the strlen. That indicates to the compiler that you ended that part.


Re: Problem in gamemode - Douglas_prt - 15.08.2012

pawn Код:
if(!strlen(tmp))[B];[/B] return SendClientMessage(playerid,COLOR_YELLOW,"USAGE: /Getid [PLayername]");
pawn Код:
if(!strlen(tmp)) return SendClientMessage(playerid,COLOR_YELLOW,"USAGE: /Getid [PLayername]");
Try to delete the ; that i 'bolded'.