Argument type mismatch
#1

Hey!

Basicly check pastebin for what my script looks like, and I get this error on under OnPlayerConnect.

https://pastebin.com/7v7DFkhp

" argument type mismatch (argument 2) "
Reply
#2

Because that's not how you use the enum, as it's not an array.

You also need to complete the enum, as it's incomplete.

https://sampforum.blast.hk/showthread.php?tid=318307
Reply
#3

well I also got this: new pInfo[MAX_PLAYERS][PlayerData];
Reply
#4

Then you reference pInfo[playerid][pName].

Don't forgo reading and learning to script.
Reply
#5

Thanks Sew_Sumi, fixed my problem, this is line at end:
GetPlayerName(playerid, pInfo[playerid][pName], MAX_PLAYER_NAME);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)