declaration of a local variable must appear in a compound block and defined symbols apparently undefined
#10

Quote:
Originally Posted by armyoftwo
Посмотреть сообщение
here
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
 if (PRESSED(KEY_FIRE))
 {
    if(IsPlayerInRangeOfPoint(playerid, 4.0, 116.7310,1853.2793,17.7055))
    {
    if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, "you are not in avehicle!");
    new vehicleid = GetPlayerVehicleID(playerid);
    PlayerPlaySound(playerid, 1133, 116.7310,1853.2793,17.7055);
    RepairVehicle(vehicleid);
    SendClientMessage(playerid, COLOR_BRIGHTRED, "Your vehicle has been repaired.");
    }
 }
 return 1;
}
I told you to move it under onplayerkeystatechange
tell me if this works
Im starting to think this is a glitch, if I use W or S in the area it repairs, thats not the shoot button
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)