String problem - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: String problem (
/showthread.php?tid=184405)
String problem -
kiss - 19.10.2010
C:\Users\Knut\Documents\My Received Files\blrp.pwn(5170) : error 017: undefined symbol "string"
C:\Users\Knut\Documents\My Received Files\blrp.pwn(5170) : error 017: undefined symbol "string"
C:\Users\Knut\Documents\My Received Files\blrp.pwn(5170) : error 029: invalid expression, assumed zero
C:\Users\Knut\Documents\My Received Files\blrp.pwn(5170) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
==============LINES============
TextDrawShowForPlayer(playerid, Elude[playerid]);
SetPlayerColor(playerid,COLOR_GRAD2);
HouseEntered[playerid] = 255;
for(new h = 184; h < sizeof(CarInfo); h++)
{
SetVehicleParamsForPlayer(h,playerid,0,CarInfo[h][cLock]);
}
GetPlayerName(playerid, plname, sizeof(plname));
format(
string, sizeof(
string), "users/%s.ini", plname);
SendClientMessage(playerid, COLOR_PURPLE, "Welcome to NL-RP Server");
SendClientMessage(playerid, COLOR_ASKQ, "Loading Please Wait...");
if(fexist(string))
{
gPlayerAccount[playerid] = 1;
}
else //Kui nime ei ole - kick!
{
gPlayerAccount[playerid] = 0;
SendClientMessage(playerid, COLOR_RED, "Welcome to BLRP!");
}
Re: String problem -
elcid7772 - 19.10.2010
You have to define 'string'. add something like 'new string[24];' somewhere above that.