29.04.2010, 13:29
There problem is if i put "GivePlayerMoney(playerid, -8000);" it gives the error. Error name is error 029: invalid expression, assumed zero. Anyone has a idea how to fix it ?
Quote:
if(strcmp(cmd, "/t2", true) == 0 || strcmp(cmd, "/tv2", true) == 0) { if(IsPlayerConnected(playerid)) { for(new player=0; player<MAX_PLAYERS; player++) { if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; } } new keyr = PlayerInfo[playerid][pky2]; if(keyr != 999) { if(!unwanted[keycar]) SetVehicleToRespawn(keyr); GivePlayerMoney(playerid, -8000); // gives the error else SendClientMessage(playerid, COLOR_WHITE, "* vehicle is in use"); } } return 1; } |