Help here a bit +rep
#1

I get this errors mabye someone can help me


Код:
C:\Users\Robin\Desktop\Angel Pine RolePlay\gamemodes\aprp.pwn(884) : warning 208: function with tag result used before definition, forcing reparse
C:\Users\Robin\Desktop\Angel Pine RolePlay\gamemodes\aprp.pwn(1143) : warning 208: function with tag result used before definition, forcing reparse
C:\Users\Robin\Desktop\Angel Pine RolePlay\gamemodes\aprp.pwn(934) : error 017: undefined symbol "INI_Float"
C:\Users\Robin\Desktop\Angel Pine RolePlay\gamemodes\aprp.pwn(935) : error 017: undefined symbol "INI_Float"
C:\Users\Robin\Desktop\Angel Pine RolePlay\gamemodes\aprp.pwn(936) : error 017: undefined symbol "INI_Float"
C:\Users\Robin\Desktop\Angel Pine RolePlay\gamemodes\aprp.pwn(937) : error 017: undefined symbol "INI_Float"
C:\Users\Robin\Desktop\Angel Pine RolePlay\gamemodes\aprp.pwn(938) : error 017: undefined symbol "INI_Int"
C:\Users\Robin\Desktop\Angel Pine RolePlay\gamemodes\aprp.pwn(939) : error 017: undefined symbol "INI_Int"
C:\Users\Robin\Desktop\Angel Pine RolePlay\gamemodes\aprp.pwn(940) : error 017: undefined symbol "INI_Int"
C:\Users\Robin\Desktop\Angel Pine RolePlay\gamemodes\aprp.pwn(941) : error 017: undefined symbol "INI_Int"
C:\Users\Robin\Desktop\Angel Pine RolePlay\gamemodes\aprp.pwn(942) : error 017: undefined symbol "INI_Bool"
C:\Users\Robin\Desktop\Angel Pine RolePlay\gamemodes\aprp.pwn(943) : error 017: undefined symbol "INI_String"
C:\Users\Robin\Desktop\Angel Pine RolePlay\gamemodes\aprp.pwn(985) : error 017: undefined symbol "INI_Open"
C:\Users\Robin\Desktop\Angel Pine RolePlay\gamemodes\aprp.pwn(985) : warning 213: tag mismatch
C:\Users\Robin\Desktop\Angel Pine RolePlay\gamemodes\aprp.pwn(986) : error 017: undefined symbol "INI_WriteFloat"
C:\Users\Robin\Desktop\Angel Pine RolePlay\gamemodes\aprp.pwn(987) : error 017: undefined symbol "INI_WriteFloat"
C:\Users\Robin\Desktop\Angel Pine RolePlay\gamemodes\aprp.pwn(988) : error 017: undefined symbol "INI_WriteFloat"
C:\Users\Robin\Desktop\Angel Pine RolePlay\gamemodes\aprp.pwn(989) : error 017: undefined symbol "INI_WriteFloat"
C:\Users\Robin\Desktop\Angel Pine RolePlay\gamemodes\aprp.pwn(990) : error 017: undefined symbol "INI_WriteInt"
C:\Users\Robin\Desktop\Angel Pine RolePlay\gamemodes\aprp.pwn(991) : error 017: undefined symbol "INI_WriteInt"
C:\Users\Robin\Desktop\Angel Pine RolePlay\gamemodes\aprp.pwn(992) : error 017: undefined symbol "INI_WriteInt"
C:\Users\Robin\Desktop\Angel Pine RolePlay\gamemodes\aprp.pwn(993) : error 017: undefined symbol "INI_WriteInt"
C:\Users\Robin\Desktop\Angel Pine RolePlay\gamemodes\aprp.pwn(994) : error 017: undefined symbol "INI_WriteBool"
C:\Users\Robin\Desktop\Angel Pine RolePlay\gamemodes\aprp.pwn(995) : error 017: undefined symbol "INI_WriteString"
C:\Users\Robin\Desktop\Angel Pine RolePlay\gamemodes\aprp.pwn(996) : error 017: undefined symbol "INI_Close"
C:\Users\Robin\Desktop\Angel Pine RolePlay\gamemodes\aprp.pwn(985) : warning 204: symbol is assigned a value that is never used: "handler"
C:\Users\Robin\Desktop\Angel Pine RolePlay\gamemodes\aprp.pwn(1002) : error 017: undefined symbol "INI_Open"
C:\Users\Robin\Desktop\Angel Pine RolePlay\gamemodes\aprp.pwn(1002) : warning 213: tag mismatch
C:\Users\Robin\Desktop\Angel Pine RolePlay\gamemodes\aprp.pwn(1003) : error 017: undefined symbol "INI_WriteFloat"
C:\Users\Robin\Desktop\Angel Pine RolePlay\gamemodes\aprp.pwn(1004) : error 017: undefined symbol "INI_WriteFloat"
C:\Users\Robin\Desktop\Angel Pine RolePlay\gamemodes\aprp.pwn(1005) : error 017: undefined symbol "INI_WriteFloat"
Reply
#2

Do you have #include < YSI\y_ini > ?
Maybe you forgot to add a }.
Reply
#3

What dumbass im i forgot that ty man :P
Reply
#4

i get this now

Код:
C:\Users\Robin\Desktop\Angel Pine RolePlay\gamemodes\aprp.pwn(7796) : error 010: invalid function or declaration
C:\Users\Robin\Desktop\Angel Pine RolePlay\gamemodes\aprp.pwn(7795) : warning 209: function "OnDialogResponse" should return a value
and i have return 1;
Reply
#5

EDIT: Then you forgot to add again a { or just add a return again.


Ex:
PHP код:
public OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
       if(
dialogid == number
    {
        if(
response)
         {
                       
//code
        
}
        return 
1;
    }
    return 
1;

Reply
#6

look here is the end

Код:
					}
					SendClientMessageEx(playerid,COLOR_GREEN,"sisss","The textlabel of cameraID ",GetPVarInt(playerid,"selected")," has succesfully been updated to ",inputtext,".");
			    }
			    SaveCamera(id);
			}
		}
	}
	return 1;
}
Reply
#7

PHP код:
}
                    
SendClientMessageEx(playerid,COLOR_GREEN,"sisss","The textlabel of cameraID ",GetPVarInt(playerid,"selected")," has succesfully been updated to ",inputtext,".");
                }
                
SaveCamera(id);
            }
        }
            return 
1;
        }
    return 
1;

Reply
#8

First error comes first, always.
It's saying that it's not returning one because you're declaring something improper on the first error line.
What do you have on this line?
Reply
#9

Line 7796 are return 1;

Код:
					}
					SendClientMessageEx(playerid,COLOR_GREEN,"sisss","The textlabel of cameraID ",GetPVarInt(playerid,"selected")," has succesfully been updated to ",inputtext,".");
			    }
			    SaveCamera(id);
			}
		}
	}
7796 return 1;
}
First Error are this 1147

Код:
C:\Users\Robin\Desktop\Angel Pine RolePlay\gamemodes\aprp.pwn(1147) : warning 208: function with tag result used before definition, forcing reparse
Код:
line 1147 stock Text3D:AttachLabelToCamera(cameraid,text[])
{
	new position,buffer[128];format(buffer,sizeof buffer,"%s",text);
	for(new i = 0;strfind(buffer,"\\n",true) != -1;i++)
	{
	    position = strfind(buffer,"\\n",true);
	    strdel(buffer,position,position +2);
	    strins(buffer,"\r\n",position,sizeof(buffer));
	}
	return Create3DTextLabel(buffer,CAMERA_LABEL_COLOR,SpeedCameras[cameraid][_x],SpeedCameras[cameraid][_y],SpeedCameras[cameraid][_z] +7,100,0,0);
Reply
#10

Now I have fixed the first error now i get this only

Код:
C:\Users\Robin\Desktop\Angel Pine RolePlay\gamemodes\aprp.pwn(7798) : error 010: invalid function or declaration
Код:
SendClientMessageEx(playerid,COLOR_GREEN,"sisss","The textlabel of cameraID ",GetPVarInt(playerid,"selected")," has succesfully been updated to ",inputtext,".");
			    }
			    SaveCamera(id);
            }
        }
        return 1;
    }
 line 7798   return 1;
}
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)