Jump to content
  • 0

pomoc Checkpointy


RejW

Dotaz

Snažím se udělat checkpointy pomocí dialogu, ale nedaří se.

 

error 033: array must be indexed (variable "cp3")

 

if((cp1 == 1) || (cp2 == 2) || (cp3 == 3))

 

//----------------------------------------------------------------------------------------------------------------

 

 error 002: only a single statement (or expression) can follow each "case"
 error 029: invalid expression, assumed zero
 warning 215: expression has no effect
 error 001: expected token: ";", but found "]"
 fatal error 107: too many error messages on one line

 

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == DIALOG_PRACE)
    {
        if(response)
        {
            switch(listitem)
            {
                case 0: cp1[playerid] = 1; //ERROR
                             SetPlayerCheckpoint(playerid, 990.8149, -1523.8387, 13.5566, 6.4403);

 

Prosím o radu.

Link to comment
Share on other sites

0 odpovědí na tuto otázku

Recommended Posts

There have been no answers to this question yet

Guest
This topic is now closed to further replies.
×
×
  • Create New...