CMD:ann3(playerid, params[]){new string[256], pName[MAX_PLAYER_NAME];if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFFFFFF, \"Nem vagy admin!\");if(isnull(params)) return SendClientMessage(playerid, 0xFFFFFF, \"/ann3 [szöveg]\");GetPlayerName(playerid, pName, sizeof(pName)); format( string, sizeof(string), \"~r~admin:~b~ %s: ~w~%s\", pName, params );GameTextForAll(0xFFFFFFF, string);return 1;}
error 035: argument type mismatch (argument 1)
GameTextForAll(0xFFFFFFF, string); // erre irja ki..
GameTextForAll(string, 5000, 3);
if (strcmp(\"/ann3\", cmdtext, true, 10) == 0) { new string[256], pName[MAX_PLAYER_NAME]; if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFFFFFF, \"Nem vagy admin!\"); if(isnull(string)) return SendClientMessage(playerid, 0xFFFFFF, \"/ann3 [szöveg]\"); GetPlayerName(playerid, pName, sizeof(pName)); format( string, sizeof(string), \"~r~admin:~b~ %s: ~w~%s\", pName, cmdtext ); GameTextForAll(string, 5000, 3); return 1; }
format( string, sizeof(string), \"~r~admin:~b~ %s: ~w~%s\", pName, cmdtext );
if(!strcmp(cmdtext, \"/ann3\", true, 5)){if(IsPlayerAdmin(playerid)==1){if(!cmdtext[5])return SendClientMessage(playerid, 0x00b7ffaa, \"Használat:{ffffff} /rs szöveg\"); else{new string[256], pName[MAX_PLAYER_NAME]; GetPlayerName(playerid, pName, sizeof(pName)); format( string, sizeof(string), \"~r~admin:~b~ %s: ~w~%s\", pName, cmdtext[6] ); GameTextForAll(string, 5000, 3); }}else{return SendClientMessage( playerid, -1, \"Hiba! Te nem vagy admin!!\");}return 1;}