Help :3
#1

Error :
Код:
(841) : error 029: invalid expression, assumed zero
(841) : warning 215: expression has no effect
Here Line 841:
pawn Код:
PlayerInfo[ID][pReps] = +1;
Full Code :
pawn Код:
CMD:rep(playerid,params[])
{
    static ID, name[MAX_PLAYERS], string7[200], name2[MAX_PLAYERS], string8[200];
    if (sscanf(params, "ii", ID)) return SendClientMessage(playerid, 0xff0000aa, "[Rep-System]: /rep [playerid/name]");
    if (playerid == ID) return SendClientMessage(playerid, 0xff0000aa, "[Rep-System]: You can't rep yourself!");

    GetPlayerName(ID, name2, sizeof(name2));
    format(string8,sizeof(string8),"[Rep-System]: {FFAF00}%s recieved has recieved rep!",name2);
    SendClientMessageToAll(COLOR_RED,string8);

    GetPlayerName(playerid, name, sizeof(name));
    format(string7,sizeof(string7),"[Rep-System]: {FFFF00}* %s(%d) has repped you !",name,playerid);
    SendClientMessage(ID,COLOR_RED,string7);
    PlayerInfo[playerid][pReps] = -1;
    PlayerInfo[ID][pReps] = +1;
    return 1;
}
Reply


Messages In This Thread
Help :3 - by ChandraLouis - 24.03.2014, 09:30
Re: Help :3 - by Flake. - 24.03.2014, 09:34
Re: Help :3 - by ]Rafaellos[ - 24.03.2014, 09:36
Re: Help :3 - by ChandraLouis - 24.03.2014, 09:43

Forum Jump:


Users browsing this thread: 1 Guest(s)