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

please help me

error coding

D:\Data DamarTaranggana\Gamemode SAMP San Andreas multiplayer\Project Zombie Jogjagamers\gamemodes\zma4.pwn(3566) : error 035: argument type mismatch (argument 1)
D:\Data DamarTaranggana\Gamemode SAMP San Andreas multiplayer\Project Zombie Jogjagamers\gamemodes\zma4.pwn(3572) : error 035: argument type mismatch (argument 1)

coding

PHP код:
        if (team[playerid] == TEAM_ZOMBIE)
        {
        new 
stringbig[356];
        
format(stringbig,sizeof(stringbig),"%s%s(%d%s) [%s%s%s]: %s",PlayerName(playerid),COL_WHITE,playerid,COL_WHITE,COL_RED,GetClassName(playerid),COL_WHITE,text);
        
SendClientMessageToAll(stringbigGetPlayerColor(playerid));
        }
         else if (
team[playerid] == TEAM_HUMAN)
        {
        new 
stringbig[356];
        
format(stringbig,sizeof(stringbig),"%s%s(%d%s) [%s%s%s]: %s",PlayerName(playerid),COL_WHITE,playerid,COL_WHITE,COL_BLUE,GetClassName(playerid),COL_WHITE,text);
        
SendClientMessageToAll(stringbigGetPlayerColor(playerid));
        } 


help me please
Reply
#2

Swap the parameters around.
Код:
SendClientMessageToAll(COLOR, String);
Use this link for reference:

https://sampwiki.blast.hk/wiki/SendClientMessageToAll
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)