[Pomoc]Errori!

Započeo Rotcod, Avgust 25, 2010, 17:30:48 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

D:\Server BY David\Server 2.6\gamemodes\larp.pwn(5146) : error 017: undefined symbol "pCigarettes"
D:\Server BY David\Server 2.6\gamemodes\larp.pwn(12120) : error 017: undefined symbol "pCigarettes"
D:\Server BY David\Server 2.6\gamemodes\larp.pwn(12122) : error 017: undefined symbol "pCigarettes"
D:\Server BY David\Server 2.6\gamemodes\larp.pwn(12127) : error 017: undefined symbol "pCigarettes"
D:\Server BY David\Server 2.6\gamemodes\larp.pwn(22244) : error 017: undefined symbol "pCigarettes"
D:\Server BY David\Server 2.6\gamemodes\larp.pwn(22524) : error 017: undefined symbol "pCigarettes"
D:\Server BY David\Server 2.6\gamemodes\larp.pwn(23017) : error 017: undefined symbol "pCigarettes"
D:\Server BY David\Server 2.6\gamemodes\larp.pwn(24330) : warning 202: number of arguments does not match definition
D:\Server BY David\Server 2.6\gamemodes\larp.pwn(32022) : error 017: undefined symbol "pCigarettes"
D:\Server BY David\Server 2.6\gamemodes\larp.pwn(32031) : error 017: undefined symbol "pCigarettes"
D:\Server BY David\Server 2.6\gamemodes\larp.pwn(77708) : warning 202: number of arguments does not match definition

Nekontam sta moze biti


kucaj u ctrl + f pinfo i tu moras dodat taj pCigarettes

Evo linije:

1. PlayerInfo[playerid][pCigarettes] = 0;
2.     if(PlayerInfo[playerid][pCigarettes] != 0)
3.         format(string, sizeof(string), "   You already have %d cigarettes left .", PlayerInfo[playerid][pCigarettes]);
4.     PlayerInfo[playerid][pCigarettes] = 20;
5. format(var, 128, "Cigarettes=%d\n",PlayerInfo[playerid][pCigarettes]);fwrite(hFile, var);
6. format(var, 128, "Cigarettes=%d\n",PlayerInfo[playerid][pCigarettes]);fwrite(hFile, var);
7.         if( strcmp( key , "Cigarettes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCigarettes] = strval( val ); }
8.             if(PlayerInfo[playerid][pCigarettes] == 0)
9.     PlayerInfo[playerid][pCigarettes] -= 1;

Citat: David Guetta poslato Avgust 25, 2010, 17:47:36 POSLE PODNE
Evo linije:

1. PlayerInfo[playerid][pCigarettes] = 0;
2.     if(PlayerInfo[playerid][pCigarettes] != 0)
3.         format(string, sizeof(string), "   You already have %d cigarettes left .", PlayerInfo[playerid][pCigarettes]);
4.     PlayerInfo[playerid][pCigarettes] = 20;
5. format(var, 128, "Cigarettes=%d\n",PlayerInfo[playerid][pCigarettes]);fwrite(hFile, var);
6. format(var, 128, "Cigarettes=%d\n",PlayerInfo[playerid][pCigarettes]);fwrite(hFile, var);
7.         if( strcmp( key , "Cigarettes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCigarettes] = strval( val ); }
8.             if(PlayerInfo[playerid][pCigarettes] == 0)
9.     PlayerInfo[playerid][pCigarettes] -= 1;



sa ctr+f pronadjes enum pinfo i ispod toga definiras ovako "pCigarettes," (bez navodnika)