whats wrong?
#6

Quote:
Originally Posted by CAR
Here it is!

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
     new cmd, idx;
     cmd = strtok(cmdtext, idx);
	if(strcmp(cmd, "/stunt1", true) == 0)
	{
		SetPlayerPos(playerid, 827.0233,-1847.0721,12.7766);
		SetPlayerInterior(playerid, 0);
		SendClientMessage(playerid, 0xFFFF00AA, "_BIG BUDDAH STUNT_");
		return 1;
    }
	if(strcmp(cmd, "/stunt2", true) == 0)
	{
		SetPlayerPos(playerid, 2525.5281,-1663.4618,18.9872);
		SetPlayerInterior(playerid, 0);
		SendClientMessage(playerid, 0xFFFF00AA, "_GROVESTREET STUNT_");
		return 1;
	}
	return 0;
}
Код:
C:\Dokumente und Einstellungen\Igor\Desktop\samp server\filterscripts\tele.pwn(102) : error 017: undefined symbol "strtok"
C:\Dokumente und Einstellungen\Igor\Desktop\samp server\filterscripts\tele.pwn(103) : error 035: argument type mismatch (argument 1)
C:\Dokumente und Einstellungen\Igor\Desktop\samp server\filterscripts\tele.pwn(110) : error 035: argument type mismatch (argument 1)
C:\Dokumente und Einstellungen\Igor\Desktop\samp server\filterscripts\tele.pwn(101) : warning 203: symbol is never used: "idx"
C:\Dokumente und Einstellungen\Igor\Desktop\samp server\filterscripts\tele.pwn(102) : warning 204: symbol is assigned a value that is never used: "cmd"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
Reply


Messages In This Thread
whats wrong? - by Eazy_E214 - 18.08.2009, 20:23
Re: whats wrong? - by XCultz - 18.08.2009, 20:23
Re: whats wrong? - by pliva_sb - 18.08.2009, 20:25
Re: whats wrong? - by CAR - 18.08.2009, 20:25
Re: whats wrong? - by Eazy_E214 - 18.08.2009, 20:28
Re: whats wrong? - by Eazy_E214 - 18.08.2009, 20:35
Re: whats wrong? - by CAR - 18.08.2009, 20:42
Re: whats wrong? - by Eazy_E214 - 18.08.2009, 22:03
Re: whats wrong? - by snoob - 18.08.2009, 22:06
Re: whats wrong? - by CAR - 19.08.2009, 07:00

Forum Jump:


Users browsing this thread: 1 Guest(s)