30.01.2017, 20:58
How can I check if the player name is 'Noone', I tried this..
ERRORS
Код:
if(newstate == PLAYER_STATE_DRIVER) { for(new i = 0; i < MAX_PVEHICLES; i++) { new string[24], Name[24]; format(string, sizeof(string), "%s", VehicleInfo[i][vOwner]); if(VehicleInfo[i][vType] == 1) { if(!strcmp(Name,string, true) == "Noone") { SendClientMessage(playerid, -1, "| This vehicle is owned by x |"); } else { SendClientMessage(playerid, -1, "| This vehicle is for sale |"); } } } }
Код:
C:\Users\andrei\Desktop\Scripting SA-MP\Basic RP Script Scratch FIX\gamemodes\U1.pwn(1325) : error 033: array must be indexed (variable "-unknown-") Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.