if(strcmp(cmd, "/nomeemp", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] > 1337)
{
new bouse = PlayerInfo[playerid][pPbiskey];
if (bouse == 255)
{
SendClientMessage(playerid, COLOR_GRAD2, " Vocк nгo possui uma empresa");
return 1;
}
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_WHITE, "USE: /nomeemp [Nome]");
}
if (bouse >= 100)
{
strmid(SBizzInfo[bouse-100][sbMessage], result, 0, 64, 255);
format(string, sizeof(string), "Nome da empresa definido para %s",SBizzInfo[bouse-100][sbMessage]);
}
else
{
strmid(BizzInfo[bouse][bMessage], result, 0, 64, 255);
format(string, sizeof(string), "Nome da empresa definido para %s",BizzInfo[bouse][bMessage]);
}
Atualizar3Dtexts();
OnPropUpdate();
SendClientMessage(playerid, COLOR_WHITE, string);
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "Vocк nгo estб autorizado a usar este comando!");
return 1;
}
}
return 1;
}
}
C:\Documents and Settings\Lucas\Desktop\BEK 0.3d\gamemodes\BEL.pwn(22865) : error 003: declaration of a local variable must appear in a compound block C:\Documents and Settings\Lucas\Desktop\BEK 0.3d\gamemodes\BEL.pwn(22865) : error 017: undefined symbol "gsstring" C:\Documents and Settings\Lucas\Desktop\BEK 0.3d\gamemodes\BEL.pwn(22865) : warning 215: expression has no effect C:\Documents and Settings\Lucas\Desktop\BEK 0.3d\gamemodes\BEL.pwn(22865) : error 001: expected token: ";", but found "]" C:\Documents and Settings\Lucas\Desktop\BEK 0.3d\gamemodes\BEL.pwn(22865) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
nao funcionou acho que nao й a questao do /nomeemp pq se o fundo for muito grande ele corta tb
|