SA-MP Forums Archive
[Ajuda] 5 warnings - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] 5 warnings (/showthread.php?tid=256250)



[Ajuda] 5 warnings - Adriano499 - 19.05.2011

Pessoal da uma forзa ai

pawn Код:
C:\(260): warning 202: number of arguments does not match definition
C:\(260) : warning 202: number of arguments does not match definition
C:\(263) : warning 202: number of arguments does not match definition
C:\(264) : warning 202: number of arguments does not match definition
C:\(818) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


5 Warnings.
pawn Код:
*/public OnPlayerDisconnect(playerid, reason)
{*/
    dini_IntSet("IPPlayers.ini",PlayerName(playerid),GetPlayerIp(playerid)); //260
    dini_IntSet("Color.ini",PlayerName(playerid),GetPlayerColor(playerid));
    dini_IntSet("WantedLevel.ini",PlayerName(playerid),GetPlayerWantedLevel(playerid));
    dini_IntSet("Armour.ini",PlayerName(playerid),GetPlayerArmour(playerid));//263
    dini_IntSet("Health.ini",PlayerName(playerid),GetPlayerHealth(playerid));//264
    dini_IntSet("Weapon.ini",PlayerName(playerid),GetPlayerWeapon(playerid));
    dini_IntSet("score.ini",PlayerName(playerid),GetPlayerScore(playerid));
    dini_IntSet("dinheiro.ini",PlayerName(playerid),GetPlayerMoney(playerid));
    dini_IntSet("skins.ini",PlayerName(playerid),GetPlayerSkin(playerid));




*/public OnPlayerSpawn(playerid)
{*/
if(dini_Isset("Weapon.ini",PlayerName(playerid))) //818



Re: [Ajuda] 5 warnings - TheGarfield - 19.05.2011

salva assim que й mais fбcil:


pawn Код:
new s[128];
                 format(s, sizeof(s),"suapasta/%s.ini", GetPlayerName(playerid, n, 24));
                 
                 Dini_IntSet(s, "Dinheiro", GetPlayerMoney(playerid));

este й um exemplo.

usas 1 Arquivo acada player, assim ele nгo darб Lбg.


Re: [Ajuda] 5 warnings - Macintosh - 19.05.2011

pawn Код:
*/public OnPlayerDisconnect(playerid, reason)
{*/
    dini_IntSet("IPPlayers.ini",PlayerName(playerid),GetPlayerIp(playerid)); //260
    dini_IntSet("Color.ini",PlayerName(playerid),GetPlayerColor(playerid));
    dini_IntSet("WantedLevel.ini",PlayerName(playerid),GetPlayerWantedLevel(playerid));
    dini_IntSet("Armour.ini",PlayerName(playerid),GetPlayerArmour(playerid));//263
    dini_IntSet("Health.ini",PlayerName(playerid),GetPlayerHealth(playerid));//264
    dini_IntSet("Weapon.ini",PlayerName(playerid),GetPlayerWeapon(playerid));
    dini_IntSet("score.ini",PlayerName(playerid),GetPlayerScore(playerid));
    dini_IntSet("dinheiro.ini",PlayerName(playerid),GetPlayerMoney(playerid));
    dini_IntSet("skins.ini",PlayerName(playerid),GetPlayerSkin(playerid));




*/public OnPlayerSpawn(playerid)
{*/
if(dini_Isset("Weapon.ini",PlayerName(playerid),SetPlayerWeapon(playerid))); //818



Re: [Ajuda] 5 warnings - Adriano499 - 19.05.2011

Quote:
Originally Posted by Shickcard
Посмотреть сообщение
pawn Код:
*/public OnPlayerDisconnect(playerid, reason)
{*/
    dini_IntSet("IPPlayers.ini",PlayerName(playerid),GetPlayerIp(playerid)); //260
    dini_IntSet("Color.ini",PlayerName(playerid),GetPlayerColor(playerid));
    dini_IntSet("WantedLevel.ini",PlayerName(playerid),GetPlayerWantedLevel(playerid));
    dini_IntSet("Armour.ini",PlayerName(playerid),GetPlayerArmour(playerid));//263
    dini_IntSet("Health.ini",PlayerName(playerid),GetPlayerHealth(playerid));//264
    dini_IntSet("Weapon.ini",PlayerName(playerid),GetPlayerWeapon(playerid));
    dini_IntSet("score.ini",PlayerName(playerid),GetPlayerScore(playerid));
    dini_IntSet("dinheiro.ini",PlayerName(playerid),GetPlayerMoney(playerid));
    dini_IntSet("skins.ini",PlayerName(playerid),GetPlayerSkin(playerid));




*/public OnPlayerSpawn(playerid)
{*/
if(dini_Isset("Weapon.ini",PlayerName(playerid),SetPlayerWeapon(playerid))); //818
o que voce mudo ? ainda continua os mesmo warnings


Re: [Ajuda] 5 warnings - TheGarfield - 19.05.2011

https://sampforum.blast.hk/showthread.php?tid=180237
https://sampforum.blast.hk/showthread.php?tid=180237
https://sampforum.blast.hk/showthread.php?tid=180237
https://sampforum.blast.hk/showthread.php?tid=180237