17.09.2014, 13:26
So basicly i have a problem with the following errors.
First and 2nd errors are defined like this but i think it might be wrong.
And the(23596) code is the same as the the dropcar code how could be bouth defining ?
Please guys i need help with this tried to fix this for past hour
PHP код:
(11133) : error 033: array must be indexed (variable "reward")
(11137) : error 035: argument type mismatch (argument 2)
(23596) : error 021: symbol already defined: "Streamer_OnPlayerEnterCP"
PHP код:
CMD:dropcar(playerid)
{
if(GetPlayerVehicleID(playerid) != 0)
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, 2505.8506, -2629.0144, 13.2944, 5);
SendClientMessage(playerid, 0x00CCCCAA, "Drop the car at the crane!");
dropping[playerid] = true;
}
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
if(dropping[playerid] == true)
{
DisablePlayerCheckpoint(playerid);
new str[128];
11133 reward = 100;
format(str,sizeof(str), "You've earned $%d from dropping a car!", reward);
SendClientMessage(playerid, 0xFF0000AA, str);
11137 GivePlayerMoney(playerid, reward);
dropping[playerid] = false;
SetTimerEx("DropTimer", 20000, false, "i", playerid);
}
return 1;
}
PHP код:
//Dropcar
new reward[MAX_PLAYERS];
new Dropped[MAX_PLAYERS];
new DropTime[MAX_PLAYERS];
PHP код:
public OnPlayerEnterCheckpoint(playerid)