Argument Type Mismatch (argument 2)
#1

pawn Код:
new player1,playername;
        new tmp[256], tmp2[256], Index;        tmp = strtok(params,Index), tmp2 = strtok(params,Index);
            if(!strlen(params)) return SendClientMessage(playerid, red, "USAGE: /cage [playerid] [reason]");
            GetPlayerName(player1,playername,sizeof(playername)); GetPlayerName(playerid,playername,sizeof(playername)); GetPlayerPos(playerid,X,Y,Z);
pawn Код:
C:\Documents and Settings\User\Desktop\Las Venturas True Crime\gamemodes\ladmin.pwn(9472) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\User\Desktop\Las Venturas True Crime\gamemodes\ladmin.pwn(9472) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\User\Desktop\Las Venturas True Crime\gamemodes\ladmin.pwn(9472) : error 035: argument type mismatch (argument 2)
HELP LOL
Reply
#2

Код:
GetPlayerName(playerid, player1, sizeof(player1));
Reply
#3

Doesn't work D:
Reply
#4

You are trying to store their name in an integer. You would have to make 'playername' a string. Change the first line of the code you pasted to:
pawn Код:
new player1,playername[MAX_PLAYER_NAME];
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)