07.02.2013, 21:09
hello am having this little issus error and also its a command it was DCMD i used a filterscript that converts DCMD to CMD and i added it to my script and now i get this error error 017: undefined symbol "tmp"
The command is here
The command is here
Код:
CMD:gotobiz(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] >= 1337) { new bull = strval(tmp); if(bull <= 0 || bull > MAX_BUSINESSES) { return SendClientMessage(playerid, -1, "Invalid biz ID!"); } new bleh[128]; format(bleh,sizeof(bleh),"Teleported to biz ID %d!",bull); SendClientMessage(playerid, -1, bleh); Teleport(playerid, BizzInfo[bull][bEntranceX], BizzInfo[bull][bEntranceY], BizzInfo[bull][bEntranceZ], 0.0, 0,0, 0); return 1; } else { return SendClientMessage(playerid, -1, " You're not authorized to use that command!"); } }