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

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

pawn Код:
forward SaveComponent(vehicleid,componentid,playerid);
public SaveComponent(vehicleid,componentid,playerid)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
            if (strcmp(vehicleid,PlayerInfo[playerid][CarLinkID],false) == 0)
That part of the code is where the error is.
Reply
#2

Do you mean:
if(vehicleid == PlayerInfo[playerid][CarLinkID])
Reply
#3

Yeah, it's meant to ask if the vehicle id equals PlayerInfo[playerid][CarLinkID] but I think I did it wrong
Reply
#4

strcmp is used for string comparisons, you are trying to compare integers.

Just use normal "if(vehicleid == PlayerInfo[playerid][CarLinkID])..."
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)