18.05.2012, 10:02
when i try to compile this with my gm it shows 1 error and warning
new Checkpoint[2],
public OnGameModeInit()
{
gangzone = GangZoneCreate(-385.3699, 1506.446, -256.9133, 1646.58, ),
return 1,
}
public OnPlayerEnterCheckpoint(playerid)
{
if(Checkpoint[playerid] = 1)
{
SendClientMessage(playerid,color,"You're capture the zone, please wait 20 seconds"),
SetTimerEx("SetZone",20000,false,"i",playerid),
}
return 1,
}
forward SetZone(playerid),
public SetZone(playerid)
{
SetPlayerScore(playerid,GetPlayerScore(playerid)+5 ),
GivePlayerCash(playerid,500),
SendClientMessage(playerid,color,"You've capture the zone and receive 500 $ and 5 score"),
if (gTeam[playerid] == TEAM_Latino)
{
GangZoneShowForAll(gangzone,TEAM_Latino_COLOR),
}
else if (gTeam[playerid] == TEAM_Souviet)
{
GangZoneShowForAll(gangzone,TEAK_Souviet_COLOR),
}
else if (gTeam[playerid] == TEAM_Arabian)
{
GangZoneShowForAll(gangzone, TEAM_Arabian_COLOR),
}
else if (gTeam[playerid] == TEAM_USA)
{
GangZoneShowForAll(gangzone, TEAM_USA_COLOR),
}
else if (gTeam[playerid] == TEAM_Europian)
{
GangZoneShowForAll(gangzone, TEAM_Europian_COLOR),
}
else if (gTeam[playerid] == TEAM_Japan)
{
GangZoneShowForAll(gangzone, TEAM_Japan_COLOR),
}
else if (gTeam[playerid] == TEAM_Taliban)
{
GangZoneShowForAll(gangzone, TEAM_Taliban_COLOR),
}
return 1,
}
when i compile it says
C:\Users\DKHG\Desktop\ww\w5.pwn(204) : error 020: invalid symbol name ""
C:\Users\DKHG\Desktop\ww\w5.pwn(1335) : warning 203: symbol is never used: ""
C:\Users\DKHG\Desktop\ww\w5.pwn(1335) : warning 203: symbol is never used: "Streamer_OnGameModeInit"
can someone correct this script plz help
new Checkpoint[2],
public OnGameModeInit()
{
gangzone = GangZoneCreate(-385.3699, 1506.446, -256.9133, 1646.58, ),
return 1,
}
public OnPlayerEnterCheckpoint(playerid)
{
if(Checkpoint[playerid] = 1)
{
SendClientMessage(playerid,color,"You're capture the zone, please wait 20 seconds"),
SetTimerEx("SetZone",20000,false,"i",playerid),
}
return 1,
}
forward SetZone(playerid),
public SetZone(playerid)
{
SetPlayerScore(playerid,GetPlayerScore(playerid)+5 ),
GivePlayerCash(playerid,500),
SendClientMessage(playerid,color,"You've capture the zone and receive 500 $ and 5 score"),
if (gTeam[playerid] == TEAM_Latino)
{
GangZoneShowForAll(gangzone,TEAM_Latino_COLOR),
}
else if (gTeam[playerid] == TEAM_Souviet)
{
GangZoneShowForAll(gangzone,TEAK_Souviet_COLOR),
}
else if (gTeam[playerid] == TEAM_Arabian)
{
GangZoneShowForAll(gangzone, TEAM_Arabian_COLOR),
}
else if (gTeam[playerid] == TEAM_USA)
{
GangZoneShowForAll(gangzone, TEAM_USA_COLOR),
}
else if (gTeam[playerid] == TEAM_Europian)
{
GangZoneShowForAll(gangzone, TEAM_Europian_COLOR),
}
else if (gTeam[playerid] == TEAM_Japan)
{
GangZoneShowForAll(gangzone, TEAM_Japan_COLOR),
}
else if (gTeam[playerid] == TEAM_Taliban)
{
GangZoneShowForAll(gangzone, TEAM_Taliban_COLOR),
}
return 1,
}
when i compile it says
C:\Users\DKHG\Desktop\ww\w5.pwn(204) : error 020: invalid symbol name ""
C:\Users\DKHG\Desktop\ww\w5.pwn(1335) : warning 203: symbol is never used: ""
C:\Users\DKHG\Desktop\ww\w5.pwn(1335) : warning 203: symbol is never used: "Streamer_OnGameModeInit"
can someone correct this script plz help