08.12.2009, 07:34
in script,the Public is with lowercase 'p' but i think i changed it accidentally,no errors,but i got like 70 warnings i dont know which are which i dont think they are from there
but for /searchgas i get those warnings
changed searchgas little bit,still crashes
but for /searchgas i get those warnings
Код:
C:\Documents and Settings\Ingrid\Desktop\MRP\gamemodes\Zombie_Survival_2.0.pwn(1854) : warning 202: number of arguments does not match definition C:\Documents and Settings\Ingrid\Desktop\MRP\gamemodes\Zombie_Survival_2.0.pwn(1856) : warning 202: number of arguments does not match definition C:\Documents and Settings\Ingrid\Desktop\MRP\gamemodes\Zombie_Survival_2.0.pwn(1856) : warning 202: number of arguments does not match definition C:\Documents and Settings\Ingrid\Desktop\MRP\gamemodes\Zombie_Survival_2.0.pwn(1856) : warning 202: number of arguments does not match definition C:\Documents and Settings\Ingrid\Desktop\MRP\gamemodes\Zombie_Survival_2.0.pwn(1856) : warning 202: number of arguments does not match definition
Код:
1842 if(strcmp(cmd, "/searchgas", true) == 0) 1843 { 1844 new sendername[MAX_PLAYER_NAME]; 1845 GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); 1846 GetPlayerName(playerid, sendername, sizeof(sendername)); 1847 new RandomGas = random(50); 1848 if(IsPlayerConnected(playerid)) 1849 { 1850 if(GasBarrels(playerid)) 1851 { 1852 SetTimerEx("Search",3500,0,"i",playerid); 1853 Gasonplayer += RandomGas ; 1854 SendClientMessage(playerid,0x00FF00FF,"You Found %s % of Fuel",RandomGas); 1855 format(string, sizeof(string), "* %s Found %s of Fuel.", sendername ,RandomGas); 1856 ProxDetector(30.0, playerid, string, 0xC2A2DAAA); 1857 } 1858 else 1559 { 1560 SendClientMessage(playerid, 0xC2A2DAAA,"You Are Not Near Gas Barrels!"); 1561 } 1562 return 1; 1563 } 1564}