21.04.2010, 06:49
Well, I know this sounds like a damn n00bish asking for a line to fix.
I made this command:
And, I wanted to add another function just like that. But becoming a terrorist or cop or some.
Maybe some others. But after I place it on the new line after the end of "}". It says invalid functions and such after I press Compile.
Can someone help me?
I know it's a damn noob question. But I really dont understand about this thing.
I already try by myself to fix the problem. But it doesn't do anything.
Thanks,
||.Rier.||
I made this command:
Code:
public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext, "/marinecorps") == 0) { SetPlayerSkin(playerid, 287); GivePlayerWeapon(playerid,WEAPON_M4,850); SendClientMessage(playerid, COLOR_GREEN, "You are now on-duty as Soldier."); return 1; } return 0; }
Code:
{ if(strcmp(cmdtext, "/terrorist") == 0) { SetPlayerSkin(playerid, 142; GivePlayerWeapon(playerid,WEAPON_AK,850); SendClientMessage(playerid, COLOR_GREEN, "You are becomes a Terrorist."); return 1; } return 0; }
Can someone help me?
I know it's a damn noob question. But I really dont understand about this thing.
I already try by myself to fix the problem. But it doesn't do anything.
Thanks,
||.Rier.||