in my script, there are many pvars, a big PlayerInfo enum and some setproperties.ocmd:a(playerid,params[])
{
new action[128],action2[128];
if(sscanf(params,"s",action2))return SendClientMessage(playerid,cSup,"/a [text]");
format(action,sizeof action,action2);
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof name);
if(PlayerInfo[playerid][pAdmin]!=0)format(action,sizeof action,"[%d]%s: %s",PlayerInfo[playerid][pAdmin],name,action);
else format(action,sizeof action,"[Zivilist]%s: %s",name,action);
admin(action);
if(PlayerInfo[playerid][pAdmin]==0)
{
new string[256];
format(string,sizeof(string),"[Deine Admin-Nachricht]: %s",action2);
SendClientMessage(playerid,cAdmin,string);
}
return 1;
}
and /a works if there ist only 1 player...
|
Originally Posted by Joe_
gaaarrrrhhh... explain to me why you're using 256 cells!
|



CMD:a(playerid,params[])
{
new action[128],action2[128];
if(sscanf(params,"s",action2)) return SendClientMessage(playerid,cSup,"/a [text]");
format(action,sizeof(action),action2);
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof name);
if(PlayerInfo[playerid][pAdmin]!=0) format(action,sizeof action,"[%d]%s: %s",PlayerInfo[playerid][pAdmin],name,action);
else format(action,sizeof action,"[Zivilist]%s: %s",name,action);
admin(action);
if(PlayerInfo[playerid][pAdmin]==0)
{
new string[256];
format(string,sizeof(string),"[Deine Admin-Nachricht]: %s",action2);
SendClientMessage(playerid,cAdmin,string);
}
return 1;
}
CMD:a(playerid,params[])
{
new action[128],action2[128];
if(sscanf(params,"s",action)) return SendClientMessage(playerid,cSup,"/a [text]");
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
if(PlayerInfo[playerid][pAdmin]!=0) format(action2,sizeof(action2),"[%d]%s: %s",PlayerInfo[playerid][pAdmin],name,action);
else format(action2,sizeof(action2),"[Zivilist]%s: %s",name,action);
admin(action2);
return 1;
}
|
Originally Posted by [Ger
Little_Grandpa ]
i really think that's not the problem! the first string is for admins, the second for the player. i mean, its not only /a which is noch working, it's also /c /f /ban /kick ... each command using a string stops working after a second player connected, so i thought there's something like a "RAM limit" which i reached? |