string - 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: string (
/showthread.php?tid=453192)
string -
lilt074life - 24.07.2013
C:\Users\gtfytgfy\Desktop\LSS-RP\gamemodes\LSS-RP.pwn(26950) : warning 204: symbol is assigned a value that is never used: "string"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
it this is my cmd that written there:
pawn Код:
CMD:buycar(playerid, params[])
{
new string[128];
if(gPlayerSpawned[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GRAD1, " You are not logged in or have not spawned !");
return 1;
}
if(!IsPlayerInRangeOfPoint(playerid, 2, 545.6661,-1292.2437,17.2422)) return SendClientMessage(playerid, COLOR_GREY, "You are not near the vehicles dealership.");
if(PlayerInfo[playerid][pLevel] < 2)
{
SendClientMessage(playerid, COLOR_RED, "** You have to be level 2 or higher to buy a vehicle");
RemovePlayerFromVehicle(playerid);
return 1;
}
if(PlayerInfo[playerid][pDonateRank] <= 1 && PlayerInfo[playerid][pCarKey1] != 0 && PlayerInfo[playerid][pCarKey2] != 0)
{
SendClientMessage(playerid, COLOR_RED, "** You already have 2 vehicles");
RemovePlayerFromVehicle(playerid);
return 1;
}
else DisplayDialogForPlayer(playerid, 9000);
return 1;
}
Re: string -
ThePhenix - 24.07.2013
Just delete the "string" because you are not using it.
PHP код:
CMD:buycar(playerid, params[])
{
if(gPlayerSpawned[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GRAD1, " You are not logged in or have not spawned !");
return 1;
}
if(!IsPlayerInRangeOfPoint(playerid, 2, 545.6661,-1292.2437,17.2422)) return SendClientMessage(playerid, COLOR_GREY, "You are not near the vehicles dealership.");
if(PlayerInfo[playerid][pLevel] < 2)
{
SendClientMessage(playerid, COLOR_RED, "** You have to be level 2 or higher to buy a vehicle");
RemovePlayerFromVehicle(playerid);
return 1;
}
if(PlayerInfo[playerid][pDonateRank] <= 1 && PlayerInfo[playerid][pCarKey1] != 0 && PlayerInfo[playerid][pCarKey2] != 0)
{
SendClientMessage(playerid, COLOR_RED, "** You already have 2 vehicles");
RemovePlayerFromVehicle(playerid);
return 1;
}
else DisplayDialogForPlayer(playerid, 9000);
return 1;
}
Re: string -
_Khaled_ - 24.07.2013
remove