Opis: Error
KODOVI:
\TextDrawEditor1.0.pwn(136) : error 017: undefined symbol "pAdmin"
\TextDrawEditor1.0.pwn(157) : warning 209: function "OnPlayerCommandText" should return a value\TextDrawEditor1.0.pwn(136) : error 017: undefined symbol "pAdmin"
\TextDrawEditor1.0.pwn(157) : warning 209: function "OnPlayerCommandText" should return a value
PlayerInfo
IsPlayerAdmin(playerid)
return 0;public OnPlayerCommandText(playerid, cmdtext[])
if(!strcmp("/text", cmdtext))
{
if(IsPlayerAdmin(playerid) >= 1339 || IsPlayerAdmin(playerid))
if(pData) return SendClientMessage(playerid, MSG_COLOR, " Finish the current edition before using /text!");
else if(!strlen(CurrentProject) || !strcmp(CurrentProject, " "))
{
if(IsPlayerMinID(playerid))
{
ShowTextDrawDialog(playerid, 0);
pData = true;
}
else
SendClientMessage(playerid, MSG_COLOR, "Just the smaller player ID can manage projects. Ask him to open one.");
return 1;
}
else
{
ShowTextDrawDialog(playerid, 4, 0);
pData = true;
return 1;
}
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp("/text", cmdtext))
{
if(IsPlayerAdmin(playerid))
{
if(pData) return SendClientMessage(playerid, MSG_COLOR, " Finish the current edition before using /text!");
else if(!strlen(CurrentProject) || !strcmp(CurrentProject, " "))
{
if(IsPlayerMinID(playerid))
{
ShowTextDrawDialog(playerid, 0);
pData = true;
}
else
{
SendClientMessage(playerid, MSG_COLOR, "Just the smaller player ID can manage projects. Ask him to open one.");
return 1;
}
}
}
else
{
ShowTextDrawDialog(playerid, 4, 0);
pData = true;
return 1;
}
}
return 0;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp("/text", cmdtext))
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, MSG_COLOR, ": {FFFFFF}Niste admin!");
if(IsPlayerAdmin(playerid))
{
if(pData) return SendClientMessage(playerid, MSG_COLOR, " Finish the current edition before using /text!");
else if(!strlen(CurrentProject) || !strcmp(CurrentProject, " "))
{
if(IsPlayerMinID(playerid))
{
ShowTextDrawDialog(playerid, 0);
pData = true;
}
else
{
SendClientMessage(playerid, MSG_COLOR, "Just the smaller player ID can manage projects. Ask him to open one.");
return 1;
}
}
}
else
{
ShowTextDrawDialog(playerid, 4, 0);
pData = true;
return 1;
}
}
return 0;
}Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava