05.03.2011, 10:11
Quote:
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 - |
pawn Код:
GameModeInIt()
pawn Код:
OnPlayerCommandText(playerid, cmetext[])