Pawno Eror - 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: Pawno Eror (
/showthread.php?tid=448414)
Pawno Eror -
andrein2 - 04.07.2013
Hi i update my streamer and i have this eror
pawn Код:
D:\Desktop Windows 8\Game4Win RolePlay\pawno\include\streamer.inc(297) : warning 202: number of arguments does not match definition
D:\Desktop Windows 8\Game4Win RolePlay\pawno\include\streamer.inc(304) : error 025: function heading differs from prototype
D:\Desktop Windows 8\Game4Win RolePlay\gamemodes\G4W.pwn(5196) : warning 209: function "Streamer_OnPlayerDisconnect" should return a value
line 297 is space
pawn Код:
static const TLD[][] = { ".org", ".net", ".org", ".info", ".ru", ".ro", ".pl", ".tk", ".cc", "forteam", "for-team", "skyzone", "af-school", "afschool", "saveg", "egaming", "e-gaming", "pronion", "prounion", "93.119.26.11", "soft-gaming", "softgaming", "9play", "pro-gaming", "gamebook", "anormal", "b-gaming"};
// Game4Win Roleplay
#define CDP CreatePickup
Line 304
Line 5196 is } at final
pawn Код:
}
if(gPlayerLogged[playerid] != 0) { OnPlayerDateUpdateX2(playerid); Update(playerid, pRespectx); Update(playerid, pConnectedTimex); Update(playerid, pPointsx); }
//OnPlayerUpdateEx(playerid);
}
Re: Pawno Eror -
Income - 04.07.2013
pawn Код:
}
if(gPlayerLogged[playerid] != 0) { OnPlayerDateUpdateX2(playerid); Update(playerid, pRespectx); Update(playerid, pConnectedTimex); Update(playerid, pPointsx); }
//OnPlayerUpdateEx(playerid);
}
It should be most likely:
pawn Код:
{
if(gPlayerLogged[playerid] != 0) // I just narrowed it to know which '{' goes to its '}'
{
OnPlayerDateUpdateX2(playerid);
Update(playerid, pRespectx);
Update(playerid, pConnectedTimex);
Update(playerid, pPointsx);
}
//OnPlayerUpdateEx(playerid);
}
Re: Pawno Eror -
andrein2 - 06.07.2013
Resolved T/C