need help with this - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: need help with this (
/showthread.php?tid=391521)
need help with this -
xMCx - 10.11.2012
pawn Код:
CMD:vips(playerid,params[])
{
if(IsPlayerConnected(playerid)){
SendClientMessage(playerid,lb,"|- Online VIP's -|");
for(new i = 0;i < MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[playerid][pVip] >= 1)
{
new vtext,sname[MAX_PLAYER_NAME],string[126];
if(PlayerInfo[i][pVip] == 3) { vtext = "Golden VIP"; }
else if(PlayerInfo[i][pVip] == 2) { vtext = "Silver VIP"; }
else if(PlayerInfo[i][pVip] == 1) { vtext = "Bronze VIP"; }
else { vtext = "VIP Level 1"; }
GetPlayerName(i,sname,sizeof(sname));
format(string,126,"'%s':[ %s ]",sname,vtext);
SendClientMessage(playerid,lb, string);
else
{
SendClientMessage(playerid,grey,"No VIP Online");
}
}
}
}
}
return 1;
}
Errors:
Код:
C:\Documents and Settings\User\Desktop\SAMP\gamemodes\mcdm.pwn(3440) : error 006: must be assigned to an array
C:\Documents and Settings\User\Desktop\SAMP\gamemodes\mcdm.pwn(3441) : error 006: must be assigned to an array
C:\Documents and Settings\User\Desktop\SAMP\gamemodes\mcdm.pwn(3442) : error 006: must be assigned to an array
C:\Documents and Settings\User\Desktop\SAMP\gamemodes\mcdm.pwn(3443) : error 006: must be assigned to an array
C:\Documents and Settings\User\Desktop\SAMP\gamemodes\mcdm.pwn(3447) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
5 Errors.
Re: need help with this -
Mustafa6155 - 10.11.2012
what are the lines 3440 to 3447
Re: need help with this -
xMCx - 10.11.2012
Quote:
Originally Posted by Mustafa6155
what are the lines 3440 to 3447
|
pawn Код:
if(PlayerInfo[i][pVip] == 3) { vtext = "Golden VIP"; }
else if(PlayerInfo[i][pVip] == 2) { vtext = "Silver VIP"; }
else if(PlayerInfo[i][pVip] == 1) { vtext = "Bronze VIP"; }
else { vtext = "VIP Level 1"; }
GetPlayerName(i,sname,sizeof(sname));
format(string,126,"'%s':[ %s ]",sname,vtext);
SendClientMessage(playerid,lb, string);
else
Re: need help with this -
SuperViper - 10.11.2012
vtext needs to be a string.