23.05.2009, 22:47
I'm sorry to keep bothering you, but I'm trying hard to figure it out with the advice you've given me.
I'm still getting errors.
I'm still getting errors.
Quote:
forward Tutorial(); |
Quote:
public Tutorial(playerid) { if(Tutorial[playerid] == 2) { Tutorial[playerid] = 0; return 1; } } public OnPlayerCommandText(playerid, cmdtext[]) { new string[256]; new cmd[256]; new idx; cmd = strtok(cmdtext, idx); new tmp[256]; new giveplayerid; new giveplayer[MAX_PLAYER_NAME]; new sendername[MAX_PLAYER_NAME]; //====================================(/locate system) if(strcmp(cmd, "/Tutorial", true) == 0) { TogglePlayerControllable(playerid, 0); Tutorial[playerid] = 1; SetTimerEx("Tutorial", 1000, 0); } if(Tutorial[playerid] == 1) { SendClientMessage(playerid,COLOR_YELLOW2,"[TUTORIAL:] BLAHBLAH??"); SendClientMessage(playerid,COLOR_YELLOW2,"[TUTORIAL:] BLEETBLEET"); SetPlayerPos(playerid, 974.0024,-1537.4017,73.0980); SetPlayerCameraPos(playerid, 974.0024,-1537.4017,73.0980); SetPlayerCameraLookAt(playerid, 1320.8724,-1409.4318,104.8676); SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid,0); Tutorial[playerid] = 2; } else if(Tutorial[playerid] == 2) { SendClientMessage(playerid,COLOR_YELLOW2,"[TUTORIAL:] Message2??"); SendClientMessage(playerid,COLOR_YELLOW2,"[TUTORIAL:] Message2again??"); return 1; } |