Random Checkpoints help
#1

Hello Guys, i've started working on A pizza job Filterscript but i faced some problems! Hope you'd be able to help me out with this ! So this is the Part of the script i'm facing prob with
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 448)
    {
        new rand = random(2),Float:X, Float:Y, Float:Z;
        switch (rand)
        {
			case 0:{X = 2332.1140;Y = -1680.7076;Z = 13.7506;}
			case 1:{X = 2508.3562;Y = -1654.8031;Z = 13.8660;}
			case 2:{X = 2141.2703;Y = -1611.0664;Z = 13.8660;}
			case 3:{X = 1092.9705;Y = -1093.6687;Z = 25.5253;}
			SetPlayerCheckpoint(playerid, X, Y, Z, 5.0);
            SendClientMessage(playerid, -1," Drive the pizza bike to the checkpoint then bring back the bike!");
        }
     }
}
i got this Warnings and errors
Код:
C:\Users\dell\Desktop\Coffre\SAMP Freedom Gaming\filterscripts\ethanpizza.pwn(98) : warning 215: expression has no effect
C:\Users\dell\Desktop\Coffre\SAMP Freedom Gaming\filterscripts\ethanpizza.pwn(97) : warning 204: symbol is assigned a value that is never used: "Z"
C:\Users\dell\Desktop\Coffre\SAMP Freedom Gaming\filterscripts\ethanpizza.pwn(97) : warning 204: symbol is assigned a value that is never used: "Y"
C:\Users\dell\Desktop\Coffre\SAMP Freedom Gaming\filterscripts\ethanpizza.pwn(97) : warning 204: symbol is assigned a value that is never used: "X"
C:\Users\dell\Desktop\Coffre\SAMP Freedom Gaming\filterscripts\ethanpizza.pwn(97 -- 102) : error 054: unmatched closing brace ("}")
Thanks in advance!
Reply


Messages In This Thread
Random Checkpoints help - by EthanMason - 10.11.2013, 17:44
Re: Random Checkpoints help - by EiresJason - 10.11.2013, 21:03
Re: Random Checkpoints help - by Loot - 10.11.2013, 23:33

Forum Jump:


Users browsing this thread: 1 Guest(s)