Code:
C:\Users\ASUS\Desktop\Server.pwn(1042) : error 017: undefined symbol "ReturnUser"
Code:
if (strcmp("/goto", cmdtext, true, 10) == 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;
}
This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at http://ift.tt/jcXqJW.
Recommended article from FiveFilters.org: Most Labour MPs in the UK Are Revolting.
Help
Aucun commentaire:
Enregistrer un commentaire