{ if(dialogid == 2) { if(response) { switch(listitem) { case 0: { //Selected Item: "Las Venturas" SetPlayerCheckpoint(1981.7261,-2451.8857,13.5469); } case 1: { //Selected Item: "Los Santos" SetPlayerCheckpoint(playerid,1981.7261,-2451.8857,13.5469); } case 2: { //Selected Item: "San Fierro" SetPlayerCheckpoint(playerid,-1263.8750,25.1669,14.1484); } return 1;
C:\Users\Jot\Documents\SAMP\gamemodes\lvdm.pwn(964) : warning 225: unreachable code C:\Users\Jot\Documents\SAMP\gamemodes\lvdm.pwn(974) : warning 213: tag mismatch C:\Users\Jot\Documents\SAMP\gamemodes\lvdm.pwn(974) : warning 202: number of arguments does not match definition C:\Users\Jot\Documents\SAMP\gamemodes\lvdm.pwn(974) : warning 202: number of arguments does not match definition C:\Users\Jot\Documents\SAMP\gamemodes\lvdm.pwn(979) : warning 202: number of arguments does not match definition C:\Users\Jot\Documents\SAMP\gamemodes\lvdm.pwn(984) : warning 202: number of arguments does not match definition C:\Users\Jot\Documents\SAMP\gamemodes\lvdm.pwn(999) : error 030: compound statement not closed at the end of file (started at line 967) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
//Selected Item: "Las Venturas"
SetPlayerCheckpoint(playerid,1981.7261,-2451.8857,13.5469);
if(dialogid == 2) { if(response) { switch(listitem) { case 0: { //Selected Item: "Las Venturas" SetPlayerCheckpoint(playerid,1981.7261,-2451.8857,13.5469) } case 1: { //Selected Item: "Los Santos" SetPlayerCheckpoint(playerid,1981.7261,-2451.8857,13.5469); } case 2: { //Selected Item: "San Fierro" SetPlayerCheckpoint(playerid,-1263.8750,25.1669,14.1484); } }//you missed closing the switch() return 1 } }
You missed the playerid and ';' on line:
pawn Код:
|
{
if(dialogid == 2)
{
if(response)
{
switch(listitem)
{
case 0:
{
//Selected Item: "Las Venturas"
SetPlayerCheckpoint(playerid, 1981.7261,-2451.8857,13.5469, 5.0);
}
case 1:
{
//Selected Item: "Los Santos"
SetPlayerCheckpoint(playerid,1981.7261,-2451.8857,13.5469, 5.0);
}
case 2:
{
//Selected Item: "San Fierro"
SetPlayerCheckpoint(playerid,-1263.8750,25.1669,14.1484, 5.0);
}
return 1;
pawn Код:
|
C:\Users\Jot\Documents\SAMP\gamemodes\lvdm.pwn(963) : warning 225: unreachable code C:\Users\Jot\Documents\SAMP\gamemodes\lvdm.pwn(985) : error 002: only a single statement (or expression) can follow each "case" C:\Users\Jot\Documents\SAMP\gamemodes\lvdm.pwn(985) : warning 215: expression has no effect C:\Users\Jot\Documents\SAMP\gamemodes\lvdm.pwn(992) : error 030: compound statement not closed at the end of file (started at line 968) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.
i suggest you work on your indentations:
Код:
if(dialogid == 2) { if(response) { switch(listitem) { case 0: { //Selected Item: "Las Venturas" SetPlayerCheckpoint(playerid,1981.7261,-2451.8857,13.5469) } case 1: { //Selected Item: "Los Santos" SetPlayerCheckpoint(playerid,1981.7261,-2451.8857,13.5469); } case 2: { //Selected Item: "San Fierro" SetPlayerCheckpoint(playerid,-1263.8750,25.1669,14.1484); } }//you missed closing the switch() return 1 } } ![]() oh, and as Stigg pointed to: have a look at https://sampwiki.blast.hk/wiki/SetPlayerCheckpoint you also missed 1 parameter: most prolly the radius? |
C:\Users\Jot\Documents\SAMP\gamemodes\lvdm.pwn(964) : warning 225: unreachable code C:\Users\Jot\Documents\SAMP\gamemodes\lvdm.pwn(973) : warning 202: number of arguments does not match definition C:\Users\Jot\Documents\SAMP\gamemodes\lvdm.pwn(978) : warning 202: number of arguments does not match definition C:\Users\Jot\Documents\SAMP\gamemodes\lvdm.pwn(983) : warning 202: number of arguments does not match definition C:\Users\Jot\Documents\SAMP\gamemodes\lvdm.pwn(987) : error 001: expected token: ";", but found "}" C:\Users\Jot\Documents\SAMP\gamemodes\lvdm.pwn(994) : error 030: compound statement not closed at the end of file (started at line 938) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.
if(dialogid == 2)
{
if(response)
{
switch(listitem)
{
case 0:
{
//Selected Item: "Las Venturas"
SetPlayerCheckpoint(playerid,1981.7261,-2451.8857,13.5469,5)
}
case 1:
{
//Selected Item: "Los Santos"
SetPlayerCheckpoint(playerid,1981.7261,-2451.8857,13.5469,5);
}
case 2:
{
//Selected Item: "San Fierro"
SetPlayerCheckpoint(playerid,-1263.8750,25.1669,14.1484,5);
}
}
return 1;
}
}