C:\Users\Cris\Desktop\0.3z Server\ASRP (LRP script)\gamemodes\ASRP_V2.0.pwn(35185) : error 029: invalid expression, assumed zero C:\Users\Cris\Desktop\0.3z Server\ASRP (LRP script)\gamemodes\ASRP_V2.0.pwn(35190) : error 017: undefined symbol "GetPlayerAdminLevel" C:\Users\Cris\Desktop\0.3z Server\ASRP (LRP script)\gamemodes\ASRP_V2.0.pwn(35191) : error 017: undefined symbol "SendAdminMessage"
{
format(szMessage, sizeof(szMessage), "** %s{FFFFFF} %s: %s **", GetPlayerAdminLevel(playerid), GetPlayerNameEx(playerid), params);
SendAdminMessage(COLOR_WHITE, szMessage);
stock GetPlayerAdminLevel(playerid) { new a_level_string[ 128 ]; if ( userData[ playerid ][ Admin_Level ] == 1 ) format( a_level_string, sizeof ( a_level_string ), "Mod" ); else if ( userData[ playerid ][ Admin_Level ] == 2 ) format( a_level_string, sizeof ( a_level_string ), "Super Mod" ); else if ( userData[ playerid ][ Admin_Level ] == 3 ) format( a_level_string, sizeof ( a_level_string ), "Admin" ); else if ( userData[ playerid ][ Admin_Level ] == 4 ) format( a_level_string, sizeof ( a_level_string ), "Owner" ); else format( a_level_string, sizeof ( a_level_string ), "Unknown admin level!" ); return a_level_string; }
Sample
Код HTML:
stock GetPlayerAdminLevel(playerid) { new a_level_string[ 128 ]; if ( userData[ playerid ][ Admin_Level ] == 1 ) format( a_level_string, sizeof ( a_level_string ), "Mod" ); else if ( userData[ playerid ][ Admin_Level ] == 2 ) format( a_level_string, sizeof ( a_level_string ), "Super Mod" ); else if ( userData[ playerid ][ Admin_Level ] == 3 ) format( a_level_string, sizeof ( a_level_string ), "Admin" ); else if ( userData[ playerid ][ Admin_Level ] == 4 ) format( a_level_string, sizeof ( a_level_string ), "Owner" ); else format( a_level_string, sizeof ( a_level_string ), "Unknown admin level!" ); return a_level_string; } |
Sample
Код HTML:
stock GetPlayerAdminLevel(playerid) { new a_level_string[ 128 ]; if ( userData[ playerid ][ Admin_Level ] == 1 ) format( a_level_string, sizeof ( a_level_string ), "Mod" ); else if ( userData[ playerid ][ Admin_Level ] == 2 ) format( a_level_string, sizeof ( a_level_string ), "Super Mod" ); else if ( userData[ playerid ][ Admin_Level ] == 3 ) format( a_level_string, sizeof ( a_level_string ), "Admin" ); else if ( userData[ playerid ][ Admin_Level ] == 4 ) format( a_level_string, sizeof ( a_level_string ), "Owner" ); else format( a_level_string, sizeof ( a_level_string ), "Unknown admin level!" ); return a_level_string; } Tutorial |
C:\Users\Cris\Desktop\0.3z Server\ASRP (LRP script)\gamemodes\ASRP_V2.0.pwn(958) : error 017: undefined symbol "userData" C:\Users\Cris\Desktop\0.3z Server\ASRP (LRP script)\gamemodes\ASRP_V2.0.pwn(958) : warning 215: expression has no effect C:\Users\Cris\Desktop\0.3z Server\ASRP (LRP script)\gamemodes\ASRP_V2.0.pwn(958) : error 001: expected token: ";", but found "]" C:\Users\Cris\Desktop\0.3z Server\ASRP (LRP script)\gamemodes\ASRP_V2.0.pwn(958) : error 029: invalid expression, assumed zero C:\Users\Cris\Desktop\0.3z Server\ASRP (LRP script)\gamemodes\ASRP_V2.0.pwn(958) : fatal error 107: too many error messages on one line
C:\Users\Cris\Desktop\0.3z Server\ASRP (LRP script)\gamemodes\ASRP_V2.0.pwn(959) : error 017: undefined symbol "userData" C:\Users\Cris\Desktop\0.3z Server\ASRP (LRP script)\gamemodes\ASRP_V2.0.pwn(959) : warning 215: expression has no effect C:\Users\Cris\Desktop\0.3z Server\ASRP (LRP script)\gamemodes\ASRP_V2.0.pwn(959) : error 001: expected token: ";", but found "]" C:\Users\Cris\Desktop\0.3z Server\ASRP (LRP script)\gamemodes\ASRP_V2.0.pwn(959) : error 029: invalid expression, assumed zero C:\Users\Cris\Desktop\0.3z Server\ASRP (LRP script)\gamemodes\ASRP_V2.0.pwn(959) : fatal error 107: too many error messages on one line
Line 959: if ( userData[ playerid ][ Admin_Level ] == 1 )