23.07.2010, 20:52
Код HTML:
C:\Users\Tony\Desktop\vmenu.pwn(109) : error 017: undefined symbol "cmd" C:\Users\Tony\Desktop\vmenu.pwn(124) : warning 217: loose indentation
Код HTML:
if(strcmp(cmd, "/vmenu", true) == 0) // by Fabio { new z=0,vvid=-1; if(IsPlayerInAnyVehicle(playerid))vvid=GetPlayerVehicleID(playerid); if(IsPlayerConnected(playerid)) { for(new car = 0; car <= MAX_VEHICLES; car++) { if(!strcmp(CarInfo[car][cOwner],GetName(playerid))) { if(car==0)format(string,sizeof(string),"%s - [%d]",string,(CarInfo[car][cDescription]),car); else format(string,sizeof(string),"%s\n%s - [%d]",string,(CarInfo[car][cDescription]),car); if(car==vvid) format(string,sizeof(string),"%s (Actual) - [%d]",string,car); z++; } if(z==0)return SendClientMessage(playerid,0xAFAFAFAA,"You don't have vehicles"); ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "VMenu - Your cars", string, "Select", "Cancel"); } } return 1; }
Please help me resolve this error and optimize this command
Sorry for mi bad shit english but i'm Italian user..