SA-MP Forums Archive
Errors +rep!! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Errors +rep!! (/showthread.php?tid=337760)



Errors +rep!! - Xtreme Brotherz - 27.04.2012

Pls. help me in fixing this error.
Код:
error 017: undefined symbol "PlayerName2"
on line
pawn Код:
if (strcmp(VehicleInfo[GetPlayerVehicleID(playerid)][owner],PlayerName2(playerid),false) == 0)
 {
        format(string, sizeof(string), "You already own this %s, %s", VehicleInfo[GetPlayerVehicleID(playerid)][vname],PlayerName2(playerid));
        SendClientMessage(playerid, COLOR_BRIGHTRED, string);
        return 1;
}
thnnx


Re: Errors +rep!! - ViniBorn - 27.04.2012

pawn Код:
PlayerName2(pID)
{
    new VBName[MAX_PLAYER_NAME];
    GetPlayerName(pID,VBName,MAX_PLAYER_NAME);
    return VBName
}



Re: Errors +rep!! - Xtreme Brotherz - 27.04.2012

thnnx +rep!!