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

So these are the errors, I get.
PHP код:
C:\Users\ъеош\Desktop\Server\gamemodes\Test.pwn(228) : error 035argument type mismatch (argument 1)
C:\Users\ъеош\Desktop\Server\gamemodes\Test.pwn(230) : error 035argument type mismatch (argument 1)
C:\Users\ъеош\Desktop\Server\gamemodes\Test.pwn(232) : error 035argument type mismatch (argument 1)
C:\Users\ъеош\Desktop\Server\gamemodes\Test.pwn(235) : error 035argument type mismatch (argument 1
I typed "// Error" at the end of the lines that cause the errors.
PHP код:
CMD:slap(playeridparams[])
{
    new 
id[50];
    if(!
IsPlayerAdmin(playerid)) return SendClientMessage(playeridCOLOR_RED"[Error] You are not authorised to use this command!");
    else if(
sscanf(params"u"id)) return SendClientMessage(playeridCOLOR_WHITE"[Usage] /slap [User ID]");
    else
    {
        new 
Float:x,
            
Float:y,
            
Float:z,
            
name[MAX_PLAYER_NAME+1],
            
name2[MAX_PLAYER_NAME+1],
            
message[84];
        
GetPlayerPos(idxyz); // Error one.
        
GetPlayerName(playeridnamesizeof(name));
        
GetPlayerName(idname2sizeof(name2)); // Error two.
        
format(messagesizeof(message), "[Info] You were slapped by the administrator %s."name);
        
SendClientMessage(idCOLOR_WHITEmessage); // Error three.
        
format(messagesizeof(message), "[SUCCESS] You just slapped %s."name2);
        
SendClientMessage(playeridCOLOR_WHITEmessage);
        
SetPlayerPos(idxy5); // Error four.
    
}
    return 
1;

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)