1 Super ANNOYING ERROR and WARNING.
#1

Hello, well amm.. here's the error:
PHP код:
(12678) : error 035argument type mismatch (argument 1
And here's the warning:
PHP код:
(12677) : warning 202number of arguments does not match definition 
Line 12677:
pawn Код:
GetPlayerName(playerid, hisname[MAX_PLAYER_NAME]);
Line 12678:
pawn Код:
if(strcmp(Houses[h][hOwner] == hisname[MAX_PLAYER_NAME]) {
'hisname' variable definetion :
pawn Код:
new id, hisname[MAX_PLAYER_NAME+1];
Reply
#2

This:
pawn Код:
GetPlayerName(playerid, hisname[MAX_PLAYER_NAME]);
Must be:
PHP код:
GetPlayerName(playeridhisnamesizeof(hisname)); 
And this:
pawn Код:
if(strcmp(Houses[h][hOwner] == hisname[MAX_PLAYER_NAME]) {
Must be:
PHP код:
if(!strcmp(Houses[h][hOwner], hisname)) { 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)