07.03.2013, 19:50
I got an error with the paychecks...
The error is this
Enum
My idea is to add that pTime each 10 minutes and later on save it (I dunno how to do it, using dini).
This is my paycheck timer. It works I guess. The only problem is with pTime
Код:
forward GivePlayerCheck(playerid);
public GivePlayerCheck(playerid)
{
GivePlayerMoney(playerid,20);
PlayerInfo[playerid][pTime]++1;
return 1;
}
Код:
D:\Igre\SAMP Serveri\SAMP 0.3x server\gamemodes\RoleplayScript.pwn(1315) : error 001: expected token: ";", but found "-integer value-" D:\Igre\SAMP Serveri\SAMP 0.3x server\gamemodes\RoleplayScript.pwn(1315) : warning 215: expression has no effect
Код:
enum pInfo
{
pAdminLevel,
pCash,
pScore,
pTime,
}
new PlayerInfo[MAX_PLAYERS][pInfo];
This is my paycheck timer. It works I guess. The only problem is with pTime
Код:
PayCheck[playerid]=SetTimerEx("GivePlayerCheck",600000,true,"i",playerid);

