error 035: argument type mismatch (argument 2)
#1

PHP код:
public OnPlayerRequestSpawn(playerid)
{
    new 
team1count GetTeamCount(1);
    new 
team2count GetTeamCount(2);
    switch(
gTeam[playerid])
    {
        case 
0:
        {
            if(
team1count team2count)
            {
                
SendClientMessage(playeridred,"You need to balance both team!");//this line
                
return 0;
            }
        }
        case 
1:
        {
            if(
team2count team1count)
            {
                
SendClientMessage(playeridred,"You need to balance both team!");//this line
                
return 0;
            }
          }
       }
       return 
1;

PHP код:
 error 035argument type mismatch (argument 2
Reply
#2

"red" is the second argument.

Show us where "red" is defined.
Reply
#3

Yeah.My mistake tho.It should be COLOR_RED.

PHP код:
#define                 red                                 "{FF0000}" 
Reply
#4

That's your problem. If you have a COLOR_RED then that is probably the correct one.

It should be similar to this:
#define COLOR_RED 0xFF0000FF
Reply
#5

Sorry its just a small mistake....BTW thanks for helping
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)