Posts: 1,266
Threads: 6
Joined: Oct 2014
Quote:
Originally Posted by SpikY_
look i made something like this....
PHP код:
//==========================================================
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(place(i) == 1) //764 line
{
new str[128];
format(str, sizeof(str), "You finished at position 1");
SendClientMessage(playerid, -1, str);
AccInfo[playerid][R1st]++;
else if(place(i) == 2)
{
format(str, sizeof(str), "You finished at position 2");
SendClientMessage(playerid, -1, str);
AccInfo[playerid][2nd]++;
else if(place(i) == 3)
{
format(str, sizeof(str), "You finished at position 3");
SendClientMessage(playerid, -1, str);
AccInfo[playerid][3rd]++;
}
}
}
Код:
(764) : error 012: invalid function call, not a valid address
(764) : warning 215: expression has no effect
(764) : error 001: expected token: ";", but found ")"
(764) : error 029: invalid expression, assumed zero
(764) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
|
you made : new place; or new place[MAX_PLAYERS]; ?