11.02.2018, 09:09
help pls
PHP код:
if(strcmp(cmd, "/gotohouse", true) == 0)
{
if(pl[playerid][pAdmin]==0)return 1;
tmp = strtok(cmdtext,idx);
new housenum = strval(tmp);
if(!strlen(tmp))return send(playerid, COLOR_GRAD2, "USAGE: /gotohouse [housenumber]");
SetPlayerInterior(playerid,hl[housenum][hInt]);
SetPlayerVirtualWorld(playerid,hl[housenum][hWorld]);
SetPlayerPos(playerid,hl[housenum][hExitx],hl[hl][hExity],hl[housenum][hExitz]);
}
PHP код:
error 017: undefined symbol "tmp"
error 017: undefined symbol "strtok"