Problems With TPing Dialog... - 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: Problems With TPing Dialog... (
/showthread.php?tid=626619)
Problems With TPing Dialog... -
MarkNelson - 17.01.2017
Hello guys i have a problem today, here is the lines
Код:
C:\Users\infogenie\Documents\Downloads\Compressed\samp037_svr_R2-1-1_win32_4\gamemodes\cfree.pwn(809) : error 002: only a single statement (or expression) can follow each "case"
C:\Users\infogenie\Documents\Downloads\Compressed\samp037_svr_R2-1-1_win32_4\gamemodes\cfree.pwn(809 -- 810) : error 029: invalid expression, assumed zero
C:\Users\infogenie\Documents\Downloads\Compressed\samp037_svr_R2-1-1_win32_4\gamemodes\cfree.pwn(840) : warning 217: loose indentation
PHP код:
if(dialogid == 22)
{
switch(listitem)
{
case 0:
{
ResetPlayerWeapons(playerid);
SetPlayerPos(playerid,-1807.6914,556.1657,234.2532);
SendClientMessage(playerid,COLOR_PINK,"You Have Been Teleported To San Fierro, Enjoy");
GivePlayerWeapon(playerid,5,1);
GivePlayerWeapon(playerid,46,1);
}
case 1:
{
ResetPlayerWeapons(playerid);
SetPlayerPos(playerid,1128.5823,1287.2134,10.8656);
SendClientMessage(playerid,COLOR_PINK,"You Have Been Teleported To Las Venturas, Enjoy");
GivePlayerWeapon(playerid,5,1);
}
case 2:
{
ResetPlayerWeapons(playerid);
SetPlayerPos(playerid,1544.9226,-1355.2490,329.4710);
SendClientMessage(playerid,COLOR_PINK,"You Have Been Teleported To Los Santos, Enjoy");
GivePlayerWeapon(playerid,5,1);
}
}
}
return 1;
}
return 1;
}
I hope you to help me
Re: Problems With TPing Dialog... -
RyderX - 17.01.2017
PHP код:
if(dialogid == 22)
{
switch(listitem)
{
case 0:
{
ResetPlayerWeapons(playerid);
SetPlayerPos(playerid,-1807.6914,556.1657,234.2532);
SendClientMessage(playerid,COLOR_PINK,"You Have Been Teleported To San Fierro, Enjoy");
GivePlayerWeapon(playerid,5,1);
GivePlayerWeapon(playerid,46,1);
}
case 1:
{
ResetPlayerWeapons(playerid);
SetPlayerPos(playerid,1128.5823,1287.2134,10.8656);
SendClientMessage(playerid,COLOR_PINK,"You Have Been Teleported To Las Venturas, Enjoy");
GivePlayerWeapon(playerid,5,1);
}
case 2:
{
ResetPlayerWeapons(playerid);
SetPlayerPos(playerid,1544.9226,-1355.2490,329.4710);
SendClientMessage(playerid,COLOR_PINK,"You Have Been Teleported To Los Santos, Enjoy");
GivePlayerWeapon(playerid,5,1);
}
}
}
return 1;
}
Re: Problems With TPing Dialog... -
FaLLenGirL - 17.01.2017
Sorry for my post, Ryder posted already.
Also wtf, guys this are simple errors.. try to think and to fix thix pathetic errors :\
[DELETE PLEASE]