error 035: argument type mismatch (argument 2)
#1

[LINE ERROR]
C:\Documents and Settings\Administrator\My Documents\Downloads\JakartaGamers-Roleplay-v1.6.0\JakartaGamers Roleplay\Aman\gamemodes\a.pwn(37411) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\Administrator\My Documents\Downloads\JakartaGamers-Roleplay-v1.6.0\JakartaGamers Roleplay\Aman\gamemodes\a.pwn(37411) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\Administrator\My Documents\Downloads\JakartaGamers-Roleplay-v1.6.0\JakartaGamers Roleplay\Aman\gamemodes\a.pwn(37413) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Documents and Settings\Administrator\My Documents\Downloads\JakartaGamers-Roleplay-v1.6.0\JakartaGamers Roleplay\Aman\gamemodes\a.pwn(37413) : error 017: undefined symbol "cwhite"
C:\Documents and Settings\Administrator\My Documents\Downloads\JakartaGamers-Roleplay-v1.6.0\JakartaGamers Roleplay\Aman\gamemodes\a.pwn(37413) : warning 215: expression has no effect
C:\Documents and Settings\Administrator\My Documents\Downloads\JakartaGamers-Roleplay-v1.6.0\JakartaGamers Roleplay\Aman\gamemodes\a.pwn(37413) : error 001: expected token: ";", but found "-identifier-"
C:\Documents and Settings\Administrator\My Documents\Downloads\JakartaGamers-Roleplay-v1.6.0\JakartaGamers Roleplay\Aman\gamemodes\a.pwn(37413) : fatal error 107: too many error messages on one line

[LINE 37411 & 37413]
{
new Name[MAX_PLAYER_NAME];
GetPlayerName(i,Name,sizeof(Name));
{
format(string, sizeof(string), ""cwhite"Level: "cgreen"%d "cwhite"| "cwhite"Name:"cgreen" %s "cwhite"(ID:"cgreen"%i"cwhite") | Rank : "cgreen"%s", PlayerInfo[i][Level], Name, i,AdmRank);
ShowPlayerDialog(playerid,2312,DIALOG_STYLE_MSGBOX ,"Admins Online",string,"OK","");
count++;
}
[CMD:ADMIN]
CMD:admins(playerid, params[])
{
new count = 0, string[256],AdmRank[500];
for(new i = 0; i < MAX_PLAYERS; i++)
if(PlayerInfo[i][Level] == 1)
{
AdmRank = "Volunteer";
}
else if(PlayerInfo[i][Level] == 2)
{
AdmRank = "Helper";
}
else if(PlayerInfo[i][Level] == 3)
{
AdmRank = "Admin level 1";
}
else if(PlayerInfo[i][Level] == 4)
{
AdmRank = "Admin level 2";
}
else if(PlayerInfo[i][Level] == 5)
{
AdmRank = "Admin level 3";
}
else if(PlayerInfo[i][Level] == 6)
{
AdmRank = "Admin level 4";
}
else if(PlayerInfo[i][Level] == 7)
{
AdmRank = "Admin Second Manager";
}
else if(PlayerInfo[i][Level] ==
{
AdmRank = "Admin Faction Manager";
}
else if(PlayerInfo[i][Level] == 9)
{
AdmRank = "Senior Administrator";
}
else if(PlayerInfo[i][Level] == 10)
{
AdmRank = "Head Administrator";
}
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
if(PlayerInfo[i][Level] > 0)
{
new Name[MAX_PLAYER_NAME];
GetPlayerName(i,Name,sizeof(Name));
{
format(string, sizeof(string), ""cwhite"Level: "cgreen"%d "cwhite"| "cwhite"Name:"cgreen" %s "cwhite"(ID:"cgreen"%i"cwhite") | Rank : "cgreen"%s", PlayerInfo[i][Level], Name, i,AdmRank);
ShowPlayerDialog(playerid,2312,DIALOG_STYLE_MSGBOX ,"Admins Online",string,"OK","");
count++;
}
}
}
}
Reply
#2

Please use php
Reply
#3

^^ Use [php] or [code] tags.

Show 5 lines before, and after the lines that have errors. So 37406-37418.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)