Quote:
Originally Posted by Hiddos
pawn Код:
if(strcmp(cmd, "/plate", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!IsAtDealership(playerid)) { return 1; } if(!strlen(tmp)) { if(PlayerToPoint(3.0, playerid,2130.7195,-1147.0983,24.3918)) //You're using if new length = strlen(cmdtext); //But not adding a bracket! (' { ') while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[128]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; idx++; if(!strlen(result)) return SendClientMessage(playerid, COLOR_GREY, "USE: {AA3333}/plate{AFAFAF} [plate number]"); SetVehicleNumberPlate(GetPlayerVehicleID(playerid), result); } //24575 return 1; } }
So:
pawn Код:
if(blabla) { morebla(); } return;
|
Undefined symbol length about three times, if you fix that I'm going to add price maybe $2000 to change your license plates.