21.12.2009, 13:33
I'm back....uff...when i resolved the problem occured, the gamemod doesn't work correctly, when I use a command in the game, the server sends me a message: [ERROR] your not an administrator, that's for all command, even non-existent commands, like...for example.../ghdhdjdsjfgk or /hello...so I tried to re-host the original and unmodified gamemod of carlito's roleplay for 0.3, it's work with the file .amx that's content in the .rar downloadable on this post, for 0.3, but when I tried to compile it, there are many and many errors, 26, so the gamemod .amx work corretly, but if I want to change something, I can not do because there are these problems in the Gamemode .pwn...even if I not change anything, there are these problems...help me
-----------------------------------------------------------------------------------------------------
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(1544) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(1544) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(1576) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(1576) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(1575) : warning 203: symbol is never used: "idx2"
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(1543) : warning 203: symbol is never used: "idx"
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(1697) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(1697) : error 033: array must be indexed (variable "cmd")
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(1723) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(1723) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(1732) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(1732) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(1860) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(1860) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(1887) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(1887) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(1897) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(1897) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(1923) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(1923) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(1933) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(1933) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(1959) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(1959) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(1973) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(1973) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(2001) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(2001) : error 033: array must be indexed (variable "tmp")
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
26 Errors.
-----------------------------------------------------------------------------------------------------
new idx; //1543
tmp = strtok(text, idx); //1544
if((strcmp("(", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("(")))
{
if(text[1] != 0)
{
format(string, sizeof(string), "(( [LOCAL OOC:] %s says: %s ))", PlayerName(playerid),text[1]);
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_F ADE4,COLOR_FADE5);
OOCLog(string);
return 0;
}
-----------------------------------------------------------------------------------------------------
if(RegistrationStep[playerid] == 2)
{
new idx2; // 1575
tmp = strtok(text, idx2); //1576
if((strcmp("male", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("male")))
{
PlayerInfo[playerid][pSex] = 1;
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[INFO:] You have set your sex to: Male.");
RegistrationStep[playerid] = 0;
TogglePlayerControllable(playerid,1);
PlayerInfo[playerid][pRegistered] = 1;
return 0;
}
-----------------------------------------------------------------------------------------------------
public OnPlayerCommandText(playerid, cmdtext[])
{
new string[256];
new cmd[256];
new idx;
cmd = strtok(cmdtext, idx); // 1697
new tmp[256];
new giveplayerid;
if(gPlayerLogged[playerid] == 1)
{
//==================================================[ADMINISTRATOR COMMANDS]=================================================
if(strcmp(cmd, "/gmx", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 20)
{
GameModeRestart();
}
else
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[ERROR:] Your not an administrator!");
}
}
return 1;
-----------------------------------------------------------------------------------------------------
if(strcmp(cmd, "/asetleader", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx); // 1723
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[USAGE:] /asetleader [playerid/PartOfName] [FactionID]");
return 1;
}
new para1;
new level;
para1 = ReturnUser(tmp);
tmp = strtok(cmdtext, idx); // 1732
level = strval(tmp);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[USAGE:] /asetleader [playerid/PartOfName] [FactionID]");
return 1;
}
-----------------------------------------------------------------------------------------------------
if(strcmp(cmd, "/agotobusiness", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx); // 1860
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[USAGE:] /agotobusiness [id]");
return 1;
}
new id = strval(tmp);
if (PlayerInfo[playerid][pAdmin] >= 1)
{
SetPlayerPos(playerid,Businesses[id][EnterX],Businesses[id][EnterY],Businesses[id][EnterZ]);
SetPlayerInterior(playerid,Businesses[id][EnterInterior]);
SetPlayerVirtualWorld(playerid,Businesses[id][EnterWorld]);
new form[128];
format(form, sizeof(form), "[INFO:] You teleported to business ID: %d.", id);
SendClientMessage(playerid, COLOR_ADMINCMD, form);
}
else
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "Your not an administrator.");
}
}
return 1;
}
-----------------------------------------------------------------------------------------------------
if(strcmp(cmd, "/abusinessproducts", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx); // 1887
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[USAGE:] /abusinessproducts [businessid] [amount]");
return 1;
}
-----------------------------------------------------------------------------------------------------
if (PlayerInfo[playerid][pAdmin] >= 7)
{
new id;
id = strval(tmp);
tmp = strtok(cmdtext, idx); // 1897
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[USAGE:] /abusinessproducts [businessid] [amount]");
return 1;
}
-----------------------------------------------------------------------------------------------------
if(strcmp(cmd, "/abusinessprice", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx); // 1923
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[USAGE:] /abusinessprice [businessid] [price]");
return 1;
}
-----------------------------------------------------------------------------------------------------
if (PlayerInfo[playerid][pAdmin] >= 7)
{
new id;
id = strval(tmp);
tmp = strtok(cmdtext, idx); // 1933
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[USAGE:] /abusinessprice [businessid] [price]");
return 1;
}
-----------------------------------------------------------------------------------------------------
if(strcmp(cmd, "/abusinesstype", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx); // 1959
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW2,"[BUSINESS TYPES:]");
SendClientMessage(playerid, COLOR_ADMINCMD,BUSINESS_TYPES);
SendClientMessage(playerid, COLOR_ADMINCMD,BUSINESS_TYPES2);
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[USAGE:] /abusinesstype [businessid] [type]");
return 1;
}
-----------------------------------------------------------------------------------------------------
if (PlayerInfo[playerid][pAdmin] >= 7)
{
new id;
new form[128];
id = strval(tmp);
tmp = strtok(cmdtext, idx); // 1973
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW2,"[BUSINESS TYPES:]");
SendClientMessage(playerid, COLOR_ADMINCMD,BUSINESS_TYPES);
SendClientMessage(playerid, COLOR_ADMINCMD,BUSINESS_TYPES2);
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[USAGE:] /abusinesstype [businessid] [type]");
return 1;
}
----------------------------------------------------------------------------------------------------
if(strcmp(cmd, "/abusinessentrance", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx); // 2001
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[USAGE:] /abusinessentrance [bizid]");
return 1;
}
__________________________________________________ _______________________________________
Perhaps I should try to delete?
Since the errors are the same in the different lines (the idx and idx2 are the same that I had at the beginning and I have to remove them, but I wanted to show you all the errors that I have found when the gm was unmoded)
-----------------------------------------------------------------------------------------------------
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(1544) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(1544) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(1576) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(1576) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(1575) : warning 203: symbol is never used: "idx2"
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(1543) : warning 203: symbol is never used: "idx"
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(1697) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(1697) : error 033: array must be indexed (variable "cmd")
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(1723) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(1723) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(1732) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(1732) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(1860) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(1860) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(1887) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(1887) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(1897) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(1897) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(1923) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(1923) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(1933) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(1933) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(1959) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(1959) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(1973) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(1973) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(2001) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Spyker\Documenti\File ricevuti\CRP_0.3a\gamemodes\crp.pwn(2001) : error 033: array must be indexed (variable "tmp")
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
26 Errors.
-----------------------------------------------------------------------------------------------------
new idx; //1543
tmp = strtok(text, idx); //1544
if((strcmp("(", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("(")))
{
if(text[1] != 0)
{
format(string, sizeof(string), "(( [LOCAL OOC:] %s says: %s ))", PlayerName(playerid),text[1]);
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_F ADE4,COLOR_FADE5);
OOCLog(string);
return 0;
}
-----------------------------------------------------------------------------------------------------
if(RegistrationStep[playerid] == 2)
{
new idx2; // 1575
tmp = strtok(text, idx2); //1576
if((strcmp("male", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("male")))
{
PlayerInfo[playerid][pSex] = 1;
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[INFO:] You have set your sex to: Male.");
RegistrationStep[playerid] = 0;
TogglePlayerControllable(playerid,1);
PlayerInfo[playerid][pRegistered] = 1;
return 0;
}
-----------------------------------------------------------------------------------------------------
public OnPlayerCommandText(playerid, cmdtext[])
{
new string[256];
new cmd[256];
new idx;
cmd = strtok(cmdtext, idx); // 1697
new tmp[256];
new giveplayerid;
if(gPlayerLogged[playerid] == 1)
{
//==================================================[ADMINISTRATOR COMMANDS]=================================================
if(strcmp(cmd, "/gmx", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 20)
{
GameModeRestart();
}
else
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[ERROR:] Your not an administrator!");
}
}
return 1;
-----------------------------------------------------------------------------------------------------
if(strcmp(cmd, "/asetleader", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx); // 1723
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[USAGE:] /asetleader [playerid/PartOfName] [FactionID]");
return 1;
}
new para1;
new level;
para1 = ReturnUser(tmp);
tmp = strtok(cmdtext, idx); // 1732
level = strval(tmp);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[USAGE:] /asetleader [playerid/PartOfName] [FactionID]");
return 1;
}
-----------------------------------------------------------------------------------------------------
if(strcmp(cmd, "/agotobusiness", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx); // 1860
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[USAGE:] /agotobusiness [id]");
return 1;
}
new id = strval(tmp);
if (PlayerInfo[playerid][pAdmin] >= 1)
{
SetPlayerPos(playerid,Businesses[id][EnterX],Businesses[id][EnterY],Businesses[id][EnterZ]);
SetPlayerInterior(playerid,Businesses[id][EnterInterior]);
SetPlayerVirtualWorld(playerid,Businesses[id][EnterWorld]);
new form[128];
format(form, sizeof(form), "[INFO:] You teleported to business ID: %d.", id);
SendClientMessage(playerid, COLOR_ADMINCMD, form);
}
else
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "Your not an administrator.");
}
}
return 1;
}
-----------------------------------------------------------------------------------------------------
if(strcmp(cmd, "/abusinessproducts", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx); // 1887
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[USAGE:] /abusinessproducts [businessid] [amount]");
return 1;
}
-----------------------------------------------------------------------------------------------------
if (PlayerInfo[playerid][pAdmin] >= 7)
{
new id;
id = strval(tmp);
tmp = strtok(cmdtext, idx); // 1897
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[USAGE:] /abusinessproducts [businessid] [amount]");
return 1;
}
-----------------------------------------------------------------------------------------------------
if(strcmp(cmd, "/abusinessprice", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx); // 1923
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[USAGE:] /abusinessprice [businessid] [price]");
return 1;
}
-----------------------------------------------------------------------------------------------------
if (PlayerInfo[playerid][pAdmin] >= 7)
{
new id;
id = strval(tmp);
tmp = strtok(cmdtext, idx); // 1933
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[USAGE:] /abusinessprice [businessid] [price]");
return 1;
}
-----------------------------------------------------------------------------------------------------
if(strcmp(cmd, "/abusinesstype", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx); // 1959
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW2,"[BUSINESS TYPES:]");
SendClientMessage(playerid, COLOR_ADMINCMD,BUSINESS_TYPES);
SendClientMessage(playerid, COLOR_ADMINCMD,BUSINESS_TYPES2);
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[USAGE:] /abusinesstype [businessid] [type]");
return 1;
}
-----------------------------------------------------------------------------------------------------
if (PlayerInfo[playerid][pAdmin] >= 7)
{
new id;
new form[128];
id = strval(tmp);
tmp = strtok(cmdtext, idx); // 1973
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW2,"[BUSINESS TYPES:]");
SendClientMessage(playerid, COLOR_ADMINCMD,BUSINESS_TYPES);
SendClientMessage(playerid, COLOR_ADMINCMD,BUSINESS_TYPES2);
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[USAGE:] /abusinesstype [businessid] [type]");
return 1;
}
----------------------------------------------------------------------------------------------------
if(strcmp(cmd, "/abusinessentrance", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx); // 2001
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[USAGE:] /abusinessentrance [bizid]");
return 1;
}
__________________________________________________ _______________________________________
Perhaps I should try to delete?
Since the errors are the same in the different lines (the idx and idx2 are the same that I had at the beginning and I have to remove them, but I wanted to show you all the errors that I have found when the gm was unmoded)