04.12.2015, 17:42
If i made it like this..it works fine
but i want it like this(put two dots not just 1 to operator chat and 1dot for admin chat so?!)
but it gives me these errrors
Quote:
OnPlayerText (playerid, text) if(pInfo[playerid][Admin] >= 1 && text[3] == '.') { format(str,SOS,"[O.Chat] %s[%d]: %s",pInfo[playerid][Name], playerid, text); SendOperatorMessage(COLOR_PURPLE,str); return 0; } |
Quote:
OnPlayerText (playerid, text) if(pInfo[playerid][Admin] >= 1 && text[3] == '..') { format(str,SOS,"[O.Chat] %s[%d]: %s",pInfo[playerid][Name], playerid, text); SendOperatorMessage(COLOR_PURPLE,str); return 0; } |
Quote:
C:\Users\Ahmed\Desktop\samp037_svr_R2-1-1_win32\gamemodes\C5School.pwn(1126) : error 027: invalid character constant C:\Users\Ahmed\Desktop\samp037_svr_R2-1-1_win32\gamemodes\C5School.pwn(1126) : error 029: invalid expression, assumed zero C:\Users\Ahmed\Desktop\samp037_svr_R2-1-1_win32\gamemodes\C5School.pwn(1126 -- 1127) : error 029: invalid expression, assumed zero C:\Users\Ahmed\Desktop\samp037_svr_R2-1-1_win32\gamemodes\C5School.pwn(1126 -- 1127) : fatal error 107: too many error messages on one line |