11.11.2009, 19:53
public OnGameModeInit()
{
if(strcmp(cmdtext,"/jetpack",true) == 0)
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X,Y,Z);
CreatePickup(370,2,X,Y,Z);
SendClientMessage(playerid, COLOR_GREY, "* Spawned jetpack");
return 1;
}
if(fexist("SAGC/Other/JoinCounter.cfg"))
{
JoinCounter = dini_Int("SAGC/Other/JoinCounter.cfg", "Connections");
printf("file \"JoinCounter.txt\" located, variable JoinCounter loaded (%d visitors)", JoinCounter);
}
else
{
dini_Create("SAGC/Other/JoinCounter.cfg");
dini_IntSet("SAGC/Other/JoinCounter.cfg", "Connections", 0);
print("file \"SAGC/Other/JoinCounter.cfg\" created with JoinCounter variable (0 visitors)");
}
Errors -
{
if(strcmp(cmdtext,"/jetpack",true) == 0)
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X,Y,Z);
CreatePickup(370,2,X,Y,Z);
SendClientMessage(playerid, COLOR_GREY, "* Spawned jetpack");
return 1;
}
if(fexist("SAGC/Other/JoinCounter.cfg"))
{
JoinCounter = dini_Int("SAGC/Other/JoinCounter.cfg", "Connections");
printf("file \"JoinCounter.txt\" located, variable JoinCounter loaded (%d visitors)", JoinCounter);
}
else
{
dini_Create("SAGC/Other/JoinCounter.cfg");
dini_IntSet("SAGC/Other/JoinCounter.cfg", "Connections", 0);
print("file \"SAGC/Other/JoinCounter.cfg\" created with JoinCounter variable (0 visitors)");
}
Errors -
Quote:
C:\Users\GuSo\Desktop\IBP Server\gamemodes\IBP.pwn(1569) : error 017: undefined symbol "cmdtext" C:\Users\GuSo\Desktop\IBP Server\gamemodes\IBP.pwn(1571) : warning 219: local variable "X" shadows a variable at a preceding level C:\Users\GuSo\Desktop\IBP Server\gamemodes\IBP.pwn(1571) : warning 219: local variable "Y" shadows a variable at a preceding level C:\Users\GuSo\Desktop\IBP Server\gamemodes\IBP.pwn(1571) : warning 219: local variable "Z" shadows a variable at a preceding level C:\Users\GuSo\Desktop\IBP Server\gamemodes\IBP.pwn(1572) : error 017: undefined symbol "playerid" C:\Users\GuSo\Desktop\IBP Server\gamemodes\IBP.pwn(1573) : warning 213: tag mismatch C:\Users\GuSo\Desktop\IBP Server\gamemodes\IBP.pwn(1573) : warning 213: tag mismatch C:\Users\GuSo\Desktop\IBP Server\gamemodes\IBP.pwn(1573) : warning 213: tag mismatch C:\Users\GuSo\Desktop\IBP Server\gamemodes\IBP.pwn(1574) : error 017: undefined symbol "playerid" C:\Users\GuSo\Desktop\IBP Server\gamemodes\IBP.pwn(1571) : warning 203: symbol is never used: "Z" C:\Users\GuSo\Desktop\IBP Server\gamemodes\IBP.pwn(1571) : warning 203: symbol is never used: "Y" C:\Users\GuSo\Desktop\IBP Server\gamemodes\IBP.pwn(1571) : warning 203: symbol is never used: "X" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors. |