Else invalid func help
#1

CMD:buyclothes(playerid, params[])
{
if(IsAtClothShop(playerid))
// else { SendClientMessageEx(playerid, COLOR_WHITE, "You are not in a Clothing Shop!"); }
{
} // My code, no I don't give good code to people I don't know.
else
{
SendClientMessageEx( playerid, COLOR_WHITE, " You are not in a Clothing Shop!" );
}
return 1;
}

Why is the "else" invalid fun. or dec.? I have tried a lot of things but still get the error. Pls help
Reply
#2

Do you get any errors? If yes, post them please.
Reply
#3

I said I did man I get invalid function or declaration
Reply
#4

pawn Код:
CMD:buyclothes(playerid, params[])
{
    if(!IsAtClothShop(playerid))
        return SendClientMessageEx( playerid, COLOR_WHITE, " You are not in a Clothing Shop!" );

    // Post your code here
    return 1;
}
Quote:

// My code, no I don't give good code to people I don't know.

Yet you can't fix a simple error.
Reply
#5

Will try it. Gonna compile.
-----------------------------
EDIT:Thanks man! It worked, credz.
Reply
#6

For future reference what good is not pasting all the code if you need help? Furthermore no one is going to be able to use your code for anything so why act like everyone wants to steal code when it's useless to anyone else but yourself?
Reply
#7

Wait, now I get another issue. So, it works but it doesn't show the model selection menu. It only send the clientmessage... Why isn't this working? I have the latest include... Why isn't this workin' pls help

Screenshot:
Reply
#8

Pls help
Reply
#9

Where's your code? You're going to have to show it otherwise nothing can be done. Unfortunately, it's that simple.
Reply
#10

Srsly? The code is above man. I have the mSelection which should provide the "code" you need. -_-
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)