02.02.2011, 14:56
I found this somewhere at sa:mp forums
And i fixed 3 errors with corols but i dunno how to fix this
E:\Gymkhana Freeroam\gamemodes\gymkhana11.pwn(1265) : error 017: undefined symbol "cmd"
E:\Gymkhana Freeroam\gamemodes\gymkhana11.pwn(1267) : error 017: undefined symbol "tmp"
E:\Gymkhana Freeroam\gamemodes\gymkhana11.pwn(1267) : error 017: undefined symbol "strtok"
E:\Gymkhana Freeroam\gamemodes\gymkhana11.pwn(126 : error 017: undefined symbol "tmp"
E:\Gymkhana Freeroam\gamemodes\gymkhana11.pwn(1273) : error 017: undefined symbol "tmp"
E:\Gymkhana Freeroam\gamemodes\gymkhana11.pwn(1283) : error 017: undefined symbol "string"
Help pls
Quote:
if(!strcmp(cmd, "/vec", true)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, 0x33CCFFAA, "Use: /vec [voertuig ID]"); return 1; } new vecid = strval(tmp); if(vecid >= 400 && vecid <= 611) { new FloatX, FloatY, FloatZ, Float: pA; GetPlayerPos(playerid, pX, pY, pZ); GetPlayerFacingAngle(playerid, pA); CreateVehicle(vecid, pX, pY, pZ, pA, -1, -1, 900); SendClientMessage(playerid, 0x33CCFFAA, string); return 1; } else { SendClientMessage(playerid, 0x33CCFFAA, "Wrong vehicle ID"); } return 1; } |
E:\Gymkhana Freeroam\gamemodes\gymkhana11.pwn(1265) : error 017: undefined symbol "cmd"
E:\Gymkhana Freeroam\gamemodes\gymkhana11.pwn(1267) : error 017: undefined symbol "tmp"
E:\Gymkhana Freeroam\gamemodes\gymkhana11.pwn(1267) : error 017: undefined symbol "strtok"
E:\Gymkhana Freeroam\gamemodes\gymkhana11.pwn(126 : error 017: undefined symbol "tmp"
E:\Gymkhana Freeroam\gamemodes\gymkhana11.pwn(1273) : error 017: undefined symbol "tmp"
E:\Gymkhana Freeroam\gamemodes\gymkhana11.pwn(1283) : error 017: undefined symbol "string"
Help pls