WTF is wrong :/ }:(
#1

Код:
Current directory: D:\VERY IMPORTANT STUFF\SA-MP Scripts\EL-RP\gamemodes
el-rp.pwn(50572) : error 001: expected token: ";", but found "}"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
================ READY ================
UNDER OnPlayerPickupPickup
pawn Код:
//Look :(
    else if(pickupid == iAmmu1 && iAmmu2 && iAmmu3 && iAmmu4 && iAmmu5)
    {
        GameTextForPlayer(playerid, "~w~Use ~r~/buygun ~w~to buy ~n~ ~r~firearms.", 5000, 3);
/*This is the error line*/      return 1;
    }
Edit :
Fixed lawl, I just hitted compile again and voila, but I still wonder why it happened when the code was right.
Reply
#2

I don't think that this is the correct syntax.

pawn Код:
if(pickupid == iAmmu1 && iAmmu2 && iAmmu3 && iAmmu4 && iAmmu5)
I may be wrong.
Reply
#3

is like this
pawn Код:
if(pickupid == iAmmu1 && pickupid == iAmmu2 && pickupid == iAmmu3 && pickupid == iAmmu4 && pickupid == iAmmu5)
Reply
#4

Yeah. I don't think the code in the first post will work.
Reply
#5

But you can't pick up at one time five pickups at once! It's impossible to do. You must change "&&" on "||".
Reply
#6

Quote:
Originally Posted by Riddick94
Посмотреть сообщение
But you can't pick up at one time five pickups at once! It's impossible to do. You must change "&&" on "||".
True that's what I was thinking.
Reply
#7

Remember this,

Next time make a decent thread subject.. NEVER use 'WTF' in a thread subject..
If following thread subject contains the word 'WTF', there will be consequences.

Take care.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)