07.02.2010, 23:53
pawn Код:
C:\Users\Stunt Paradise\Desktop\SAMP R4\pawno\include\cps.inc(140) : warning 208: function with tag result used before definition, forcing reparse
C:\Users\Stunt Paradise\Desktop\SAMP R4\gamemodes\SPV4.pwn(4264) : error 017: undefined symbol "RandomEvent"
C:\Users\Stunt Paradise\Desktop\SAMP R4\gamemodes\SPV4.pwn(4265) : error 017: undefined symbol "RandomEvent"
C:\Users\Stunt Paradise\Desktop\SAMP R4\gamemodes\SPV4.pwn(4271) : error 017: undefined symbol "RandomEvent"
C:\Users\Stunt Paradise\Desktop\SAMP R4\gamemodes\SPV4.pwn(4277) : error 017: undefined symbol "RandomEvent"
C:\Users\Stunt Paradise\Desktop\SAMP R4\gamemodes\SPV4.pwn(4283) : error 017: undefined symbol "RandomEvent"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
pawn Код:
public Events()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
RandomEvent = random(4);
if (RandomEvent == 0)
{
GivePlayerWeapon(i, 38, 1);
GameTextForAll("~r~~h~Minigun~n~~h~Fight!",15000,5);
print("Debug Minigun");
}
if (RandomEvent == 1)
{
GivePlayerWeapon(i, 16, 5);
GameTextForAll("~r~~h~Grenade~n~~h~Fight!",15000,5);
print("Debug Grenade");
}
if (RandomEvent == 2)
{
GivePlayerWeapon(i, 9, 1);
GameTextForAll("~r~~h~Chainsaw~n~~h~Fight!",15000,5);
print("Debug Chainsaw");
}
if (RandomEvent == 3)
{
GivePlayerWeapon(i, 35, 3);
GameTextForAll("~r~~h~Rocket~n~~h~Fight!",15000,5);
print("Debug Rocket");
}
}
}
}