LINE : 19697: strins(JFS,"Name: %s(Rank: %d.)\n",strlen(JFS), GetName(i), Player[i][GroupRank]);
ShowPlayerDialog(playerid, 1234, DIALOG_STYLE_MSGBOX, "{F60000}Welcome Box!",JFS, "Play", "Play");
C:\Documents and Settings\Callum.CALLUM-3951A231\Desktop\Scripts\VXRP\gamemodes\VortexRoleplay.pwn(19697) : error 035: argument type mismatch (argument 4) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
pawn Код:
Код:
C:\Documents and Settings\Callum.CALLUM-3951A231\Desktop\Scripts\VXRP\gamemodes\VortexRoleplay.pwn(19697) : error 035: argument type mismatch (argument 4) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. |
C:\Documents and Settings\Callum.CALLUM-3951A231\Desktop\Scripts\VXRP\gamemodes\VortexRoleplay.pwn(19698) : error 012: invalid function call, not a valid address C:\Documents and Settings\Callum.CALLUM-3951A231\Desktop\Scripts\VXRP\gamemodes\VortexRoleplay.pwn(19698) : warning 215: expression has no effect C:\Documents and Settings\Callum.CALLUM-3951A231\Desktop\Scripts\VXRP\gamemodes\VortexRoleplay.pwn(19698) : warning 215: expression has no effect C:\Documents and Settings\Callum.CALLUM-3951A231\Desktop\Scripts\VXRP\gamemodes\VortexRoleplay.pwn(19698) : warning 215: expression has no effect C:\Documents and Settings\Callum.CALLUM-3951A231\Desktop\Scripts\VXRP\gamemodes\VortexRoleplay.pwn(19698) : error 001: expected token: ";", but found ")" C:\Documents and Settings\Callum.CALLUM-3951A231\Desktop\Scripts\VXRP\gamemodes\VortexRoleplay.pwn(19698) : error 029: invalid expression, assumed zero C:\Documents and Settings\Callum.CALLUM-3951A231\Desktop\Scripts\VXRP\gamemodes\VortexRoleplay.pwn(19698) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
string(JFS,"Name: %s(Rank: %d.)\n",strlen(JFS), GetName(i), Player[i][GroupRank]);
command(members, playerid, params[])
{
#pragma unused params
if(Player[playerid][Group] >= 1)
{
new JFS[200];
new string[200];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnectedEx(i) && Player[i][Group] == Player[playerid][Group] && Player[i][AdminDuty] < 1)
{
string(JFS,"Name: %s(Rank: %d.)\n",strlen(JFS), GetName(i), Player[i][GroupRank]);
ShowPlayerDialog(playerid, 1234, DIALOG_STYLE_MSGBOX, "{F60000}Member Box!",JFS, "Play", "Play");
}
}
}
return 1;
}
command(members, playerid, params[])
COMMAND:members(playerid, params[])
format(JFS,"Name: %s(Rank: %d.)\n",strlen(JFS), GetName(i), Player[i][GroupRank]);
C:\Documents and Settings\Callum.CALLUM-3951A231\Desktop\Scripts\VXRP\gamemodes\VortexRoleplay.pwn(19697) : error 035: argument type mismatch (argument 2) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
format(JFS, sizeof(JFS), "Name: %s(Rank: %d.)\n", GetName(i), Player[i][GroupRank]);
if(IsPlayerConnectedEx(i) && Player[i][Group] == Player[playerid][Group] && Player[i][AdminDuty] < 1)
{
new
tmp[64]; // temporary value to store formatted string
format(tmp, sizeof(tmp), "Name: %s(Rank: %d.)\n", GetName(i), Player[i][GroupRank]);
strins(JFS, tmp, strlen(JFS));
ShowPlayerDialog(playerid, 1234, DIALOG_STYLE_MSGBOX, "{F60000}Member Box!",JFS, "Play", "Play");
}
Please keep your mouth shut when you don't know what you're talking about. The function strins (string insert) only inserts a substring into another string at a given position. |
Please Keep Your Mouth Shut If You Nothing Good To Say. The Thought was that i was trying to Help.
Hasn't Your Mother Taught You Manners? |
@HayZatic: Well, you're just helping him from the shore into the ditch. How's that helpful? You might want to consult some resources first, before trying to give an answer that will only generate even more errors.
|