error 017: undefined symbol "string"
#1

Код:
C:\Documents and Settings\user\Desktop\server samp\gamemodes\testserver.pwn(32) : error 017: undefined symbol "string"
C:\Documents and Settings\user\Desktop\server samp\gamemodes\testserver.pwn(32) : error 017: undefined symbol "string"
C:\Documents and Settings\user\Desktop\server samp\gamemodes\testserver.pwn(32) : error 029: invalid expression, assumed zero
C:\Documents and Settings\user\Desktop\server samp\gamemodes\testserver.pwn(32) : fatal error 107: too many error messages on one line
Код:
YCMD:tutorial(playerid, params[], help)
{
	if(IsPlayerConnected(playerid))
	{
		if (gPlayerLogged[playerid] != 0)
		{
		    if(IsOnTutorial[playerid] == 0)
		    {
			    if(PlayerInfo[playerid][pTutDone] == 20) { SendClientMessage(playerid, COLOR_GREY, "You have Already Finished your tutorial!"); return 1; }
       			else if(PlayerInfo[playerid][pTutDone] == 0) { SetPlayerCheckpoint(playerid, 1618.4030,-2329.7612,13.5469, 2); GameTextForPlayer(playerid, "~w~Head to the ~r~Checkpoint", 6000, 3); }
		        else if(PlayerInfo[playerid][pTutDone] == 1) { SetPlayerCheckpoint(playerid, 1689.5321,-2239.2610,-2.71079, 2); GameTextForPlayer(playerid, "~w~Head to the ~r~Checkpoint", 6000, 3); }
      			else if(PlayerInfo[playerid][pTutDone] == 2) { SetPlayerCheckpoint(playerid, 1480.3043,-1739.3135,13.5469, 2); GameTextForPlayer(playerid, "~w~Head to the ~r~Checkpoint", 6000, 3); }
	        	else if(PlayerInfo[playerid][pTutDone] == 3) { SetPlayerCheckpoint(playerid, 1547.4700,-1675.7671,14.0981, 2); GameTextForPlayer(playerid, "~w~Head to the ~r~Checkpoint", 6000, 3); }
		        else if(PlayerInfo[playerid][pTutDone] == 4) { SetPlayerCheckpoint(playerid, 1463.3116,-1023.6773,23.8331, 2); GameTextForPlayer(playerid, "~w~Head to the ~r~Checkpoint", 6000, 3); }
		        else if(PlayerInfo[playerid][pTutDone] == 5) { SetPlayerCheckpoint(playerid, 1364.3809,-1279.9447,13.5469, 2); GameTextForPlayer(playerid, "~w~Head to the ~r~Checkpoint", 6000, 3); }
		        else if(PlayerInfo[playerid][pTutDone] == 6) { SetPlayerCheckpoint(playerid, 1178.4044,-1323.0798,14.1184, 2); GameTextForPlayer(playerid, "~w~Head to the ~r~Checkpoint", 6000, 3); }
		        else if(PlayerInfo[playerid][pTutDone] == 7) { SetPlayerCheckpoint(playerid, 2229.1575,-1727.0540,13.5469, 2); GameTextForPlayer(playerid, "~w~Head to the ~r~Checkpoint", 6000, 3); }
		        else if(PlayerInfo[playerid][pTutDone] == 8) { SetPlayerCheckpoint(playerid, 2243.9365,-1660.2887,15.2879, 2); GameTextForPlayer(playerid, "~w~Head to the ~r~Checkpoint", 6000, 3); }
		        else if(PlayerInfo[playerid][pTutDone] == 9) { SetPlayerCheckpoint(playerid, 483.6973,-1489.8641,20.0528, 2); GameTextForPlayer(playerid, "~w~Head to the ~r~Checkpoint", 6000, 3); }
		        else if(PlayerInfo[playerid][pTutDone] == 10) { SetPlayerCheckpoint(playerid, 555.0895,-1261.9196,17.2422, 2); GameTextForPlayer(playerid, "~w~Head to the ~r~Checkpoint", 6000, 3); }
		        else if(PlayerInfo[playerid][pTutDone] == 11) { SetPlayerCheckpoint(playerid, 1510.0883,-1430.9789,13.5469, 2); GameTextForPlayer(playerid, "~w~Head to the ~r~Checkpoint", 6000, 3); }
		        else if(PlayerInfo[playerid][pTutDone] == 12) { SetPlayerCheckpoint(playerid, 2048.8523,-1900.5702,13.5538, 2); GameTextForPlayer(playerid, "~w~Head to the ~r~Checkpoint", 6000, 3); }
		        else if(PlayerInfo[playerid][pTutDone] == 13) { SetPlayerCheckpoint(playerid, 1524.1573,-1674.2922,13.5469, 2); GameTextForPlayer(playerid, "~w~Head to the ~r~Checkpoint", 6000, 3); }
		        else if(PlayerInfo[playerid][pTutDone] == 14) { SetPlayerCheckpoint(playerid, 1463.3116,-1023.6773,23.8331, 2); GameTextForPlayer(playerid, "~w~Head to the ~r~Checkpoint", 6000, 3); }
		        IsOnTutorial[playerid] = 1;
		        new Float:X,Float:Y,Float:Z;
				PlayerPlaySound(playerid, 1057, X,Y,Z);
				new d,m,y;
				new h,mi,s;
				getdate(y,m,d);
				gettime(h,mi,s);
				format(string, sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s has Typed '/tutorial'",d,m,y,h,mi,s,sendername);
				CommandLog(string);
			}
			else
			{
   				SendClientMessage(playerid, COLOR_GREY, "You are already on the tutorial, Type /canceltutorial to Cancel it!");
			    return 1;
			}
		}
		else
		{
  			SendClientMessage(playerid, COLOR_GREY, "You are not Logged in!");
	    	return 1;
		}
	}
	return 1;
}
pls help me fix
Reply


Messages In This Thread
error 017: undefined symbol "string" - by vn007322815 - 28.12.2013, 04:23
Re: error 017: undefined symbol "string" - by Copfan5 - 28.12.2013, 04:32
Respuesta: error 017: undefined symbol "string" - by ghost556 - 28.12.2013, 04:39
Re: error 017: undefined symbol "string" - by vn007322815 - 28.12.2013, 05:15
Re: error 017: undefined symbol "string" - by Riddick94 - 28.12.2013, 05:18
Re: error 017: undefined symbol "string" - by vn007322815 - 28.12.2013, 07:35

Forum Jump:


Users browsing this thread: 1 Guest(s)