[Help]Error
#1

Help
Код:
C:\Users\ASUS\Desktop\nfs2.pwn(1533) : error 017: undefined symbol "tmp"
C:\Users\ASUS\Desktop\nfs2.pwn(1533) : error 017: undefined symbol "idx"
C:\Users\ASUS\Desktop\nfs2.pwn(1534) : error 017: undefined symbol "tmp"
C:\Users\ASUS\Desktop\nfs2.pwn(1539) : error 017: undefined symbol "giveplayerid"
C:\Users\ASUS\Desktop\nfs2.pwn(1539) : error 017: undefined symbol "giveplayer"
C:\Users\ASUS\Desktop\nfs2.pwn(1539) : error 029: invalid expression, assumed zero
C:\Users\ASUS\Desktop\nfs2.pwn(1539) : fatal error 107: too many error messages on one line
On Line

Код:
if(strcmp(cmdtext, "/goto", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_WHITE, "Използвай: /goto [Playerid/PartOfName]");
				return 1;
			}
            GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
			new Float:plocx,Float:plocy,Float:plocz;
			new plo;
			plo = ReturnUser(tmp);
			if (IsPlayerConnected(plo))
			{
			    if(plo != INVALID_PLAYER_ID)
			    {
                        {
						GetPlayerPos(plo, plocx, plocy, plocz);
						SetPlayerInterior(playerid, GetPlayerInterior(plo));
						SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(plo));
						if (GetPlayerState(playerid) == 2)
						{
							new tmpcar = GetPlayerVehicleID(playerid);
							SetVehiclePos(tmpcar, plocx, plocy+4, plocz);
							TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
						}
						else
						{
							SetPlayerPos(playerid,plocx,plocy+2, plocz);
						}
				        SendClientMessage(plo, COLOR_WHITE, string);
				        SendClientMessage(playerid, COLOR_WHITE, string);
					}
				}
			}
			else
			{
				format(string, sizeof(string), "ID-то, което посочи не е в сървъра.");
				SendClientMessage(playerid, COLOR_GRAD1, string);
			}
		}
		return 1;
	}
Reply


Messages In This Thread
[Help]Error - by alekschowee - 28.08.2016, 18:07
Re: [Help]Error - by Sew_Sumi - 28.08.2016, 18:14
Re: [Help]Error - by Sh4dow04 - 28.08.2016, 18:15
Re: [Help]Error - by HidroDF - 28.08.2016, 18:17

Forum Jump:


Users browsing this thread: 1 Guest(s)