08.01.2010, 09:18
check your brackets, there's probably one missing.
after the "Login First" needs an extra bracket
EDIT: this should do it: but fix the identation of my bracket because I'm too lazy to open pawno right now
after the "Login First" needs an extra bracket
EDIT: this should do it: but fix the identation of my bracket because I'm too lazy to open pawno right now
Код:
if(strcmp(cmd, "/scrapcar", true) == 0) { if(IsPlayerConnected(playerid)) { if(IsPlayerInAnyVehicle(playerid)) { IsPlayerInArea(playerid, 214.973251, 208.995681, 27.271835, 22.040054) { PlayerInfo[playerid][pMaterials] + 60; PlayerActionMessage(playerid,15.0,"Cuts his car into small pieces, and gets 60 blocks of scrap metal from it."); } else { SendClientMessage(playerid, COLOR_WHITE, "[ERROR:] You must be at the warehouse to scrap your car."); } else { SendClientMessage(playerid, COLOR_WHITE, "[ERROR:] You must be driving a car to scrap it."); } else { SendClientMessage(playerid, COLOR_WHITE, "[ERROR:] Login first."); } } return 1; }