SA-MP Forums Archive
help - 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: help (/showthread.php?tid=280797)



help - Salsa - 03.09.2011

Help Me fast it please


Quote:

C:\Documents and Settings\Kapil\Desktop\samp03\samp03\gamemodes\lvd m.pwn(763) : warning 204: symbol is assigned a value that is never used: "string"
C:\Documents and Settings\Kapil\Desktop\samp03\samp03\gamemodes\lvd m.pwn(763) : warning 204: symbol is assigned a value that is never used: "pName"
C:\Documents and Settings\Kapil\Desktop\samp03\samp03\gamemodes\lvd m.pwn(964) : warning 225: unreachable code
C:\Documents and Settings\Kapil\Desktop\samp03\samp03\gamemodes\lvd m.pwn(2314) : error 017: undefined symbol "PlayerToPoint"
C:\Documents and Settings\Kapil\Desktop\samp03\samp03\gamemodes\lvd m.pwn(2343) : error 017: undefined symbol "pName"
C:\Documents and Settings\Kapil\Desktop\samp03\samp03\gamemodes\lvd m.pwn(2343) : error 017: undefined symbol "pName"
C:\Documents and Settings\Kapil\Desktop\samp03\samp03\gamemodes\lvd m.pwn(2343) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Kapil\Desktop\samp03\samp03\gamemodes\lvd m.pwn(2343) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Errors.




Re: help - BlackWolf120 - 03.09.2011

show the code pls


Re: help - Salsa - 03.09.2011

Seee Full code

Quote:

if(!strcmp(cmdtext, "/lvair", true))
{
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid), 1282.6499,1267.8385,10.8203);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0);
LinkVehicleToInterior(GetPlayerVehicleID(playerid) , 0);
}
else
{
SetPlayerPos(playerid, 1282.6499,1267.8385,10.8203);
SetPlayerFacingAngle(playerid, 0.0);
}
SetPlayerInterior(playerid, 0);
SendClientMessage(playerid, COLOR_LIGHTBLUE, " Welcome to Las Venturas Stunt Airport!");
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "TELE: %s has gone to LV Airport (/lvair)", pName);
SendClientMessageToAll(COLOR_YELLOW, string);
return 1;
}




Re: help - BlackWolf120 - 03.09.2011

try this

pawn Код:
if(!strcmp(cmdtext, "/lvair", true))
{
    if(IsPlayerInAnyVehicle(playerid))
    {
    SetVehiclePos(GetPlayerVehicleID(playerid), 1282.6499,1267.8385,10.8203);
    SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0);
    LinkVehicleToInterior(GetPlayerVehicleID(playerid) , 0);
    }
    else
    {
    new pName[24],string[128];
    SetPlayerPos(playerid, 1282.6499,1267.8385,10.8203);
    SetPlayerFacingAngle(playerid, 0.0);
    SetPlayerInterior(playerid, 0);
    SendClientMessage(playerid, -1, " Welcome to Las Venturas Stunt Airport!");
    GetPlayerName(playerid, pName, 24);
    format(string, sizeof(string), "TELE: %s has gone to LV Airport (/lvair)", pName);
    SendClientMessageToAll(-1, string);
    }
    return 1;
}



Re: help - Salsa - 03.09.2011

it showing this


Quote:

C:\Documents and Settings\Kapil\Desktop\samp03\samp03\gamemodes\lvd m.pwn(763) : warning 204: symbol is assigned a value that is never used: "string"
C:\Documents and Settings\Kapil\Desktop\samp03\samp03\gamemodes\lvd m.pwn(763) : warning 204: symbol is assigned a value that is never used: "pName"
C:\Documents and Settings\Kapil\Desktop\samp03\samp03\gamemodes\lvd m.pwn(964) : warning 225: unreachable code
C:\Documents and Settings\Kapil\Desktop\samp03\samp03\gamemodes\lvd m.pwn(2314) : error 017: undefined symbol "PlayerToPoint"
C:\Documents and Settings\Kapil\Desktop\samp03\samp03\gamemodes\lvd m.pwn(2364) : error 017: undefined symbol "pName"
C:\Documents and Settings\Kapil\Desktop\samp03\samp03\gamemodes\lvd m.pwn(2364) : error 017: undefined symbol "pName"
C:\Documents and Settings\Kapil\Desktop\samp03\samp03\gamemodes\lvd m.pwn(2364) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Kapil\Desktop\samp03\samp03\gamemodes\lvd m.pwn(2364) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Errors.




Re: help - BlackWolf120 - 03.09.2011

how can this show the same errors?
If u have also the string defined and the colours this cannot show any errors.
Im sure ure showing the wrong part/cmd or ure pasting this in the wrong callback


Re: help - Salsa - 03.09.2011

i am not add new pname on Top
how i defined string


Re: help - BlackWolf120 - 03.09.2011

u define ur string like:
pawn Код:
new string[128];
ive edited the code in my previous post, pls look it up


Re: help - Salsa - 03.09.2011

help me now it showing this



Код:
C:\Documents and Settings\Kapil\Desktop\samp03\samp03\pawno\include\dutils.inc(28) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Kapil\Desktop\samp03\samp03\pawno\include\dutils.inc(132) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Kapil\Desktop\samp03\samp03\pawno\include\dutils.inc(172) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Kapil\Desktop\samp03\samp03\pawno\include\dutils.inc(267) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Kapil\Desktop\samp03\samp03\pawno\include\dutils.inc(324) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Kapil\Desktop\samp03\samp03\pawno\include\dutils.inc(366) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Kapil\Desktop\samp03\samp03\pawno\include\dini.inc(239) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Kapil\Desktop\samp03\samp03\gamemodes\lvdm.pwn(510) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Kapil\Desktop\samp03\samp03\gamemodes\lvdm.pwn(696) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Kapil\Desktop\samp03\samp03\gamemodes\lvdm.pwn(768) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Kapil\Desktop\samp03\samp03\gamemodes\lvdm.pwn(768) : warning 204: symbol is assigned a value that is never used: "string"
C:\Documents and Settings\Kapil\Desktop\samp03\samp03\gamemodes\lvdm.pwn(768) : warning 204: symbol is assigned a value that is never used: "pName"
C:\Documents and Settings\Kapil\Desktop\samp03\samp03\gamemodes\lvdm.pwn(940) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Kapil\Desktop\samp03\samp03\gamemodes\lvdm.pwn(969) : warning 225: unreachable code
C:\Documents and Settings\Kapil\Desktop\samp03\samp03\gamemodes\lvdm.pwn(2319) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Kapil\Desktop\samp03\samp03\gamemodes\lvdm.pwn(2348) : error 017: undefined symbol "pName"
C:\Documents and Settings\Kapil\Desktop\samp03\samp03\gamemodes\lvdm.pwn(2348) : error 017: undefined symbol "pName"
C:\Documents and Settings\Kapil\Desktop\samp03\samp03\gamemodes\lvdm.pwn(2348) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Kapil\Desktop\samp03\samp03\gamemodes\lvdm.pwn(2348) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Error
s.


Re: help - BlackWolf120 - 03.09.2011

you have defined ur string either globaly or twice.
Also there might be }{ erros in it.

Check ur error compiler output...
there are errors at different lines so the code u posted is not the only problem and without code we cant fix ur problems.