Jump to content
  • 0

pomoc Errory v GM


Kortes

Dotaz

Zdravim lidi zakoupil jsem si mod Paradise World ale píše mě to tyto errory v pawnu jsem totální začátečník takže na to berte ohled :):d

error 017: undefined symbol "spoiler"
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line

 

 

Kod:

stock InitComponents(componentid)
{
new i;
for(i=0; i<20; i++)
{
if(spoiler[0] == componentid) return 0; }
}
for(i=0; i<3; i++)
{
if(nitro[0] == componentid) { return 1; }
}
for(i=0; i<23; i++)
{
if(fbumper[0] == componentid) { return 2; }
}
for(i=0; i<22; i++)
{
if(rbumper[0] == componentid) { return 3; }
}
for(i=0; i<28; i++)
{
if(exhaust[0] == componentid) { return 4; }
}
for(i=0; i<2; i++)
{
if(bventr[0] == componentid) { return 5; }
}
for(i=0; i<2; i++)
{
if(bventl[0] == componentid) { return 6; }
}
for(i=0; i<4; i++)
{
if(bscoop[0] == componentid) { return 7; }
}
for(i=0; i<13; i++)
{
if(rscoop[0] == componentid) { return 8; }
}
for(i=0; i<21; i++)
{
if(lskirt[0] == componentid) { return 9; }
}
for(i=0; i<21; i++)
{
if(rskirt[0] == componentid) { return 10; }
}
if(hydraulics[0][0] == componentid) { return 11; }
if(base[0][0] == componentid) { return 12; }
for(i=0; i<2; i++)
{
if(rbbars[0] == componentid) { return 13; }
}
for(i=0; i<2; i++)
{
if(fbbars[0] == componentid) { return 14; }
}
for(i=0; i<17; i++)
{
if(wheels[0] == componentid) { return 15; }
}
for(i=0; i<2; i++)
{
if(lightss[0] == componentid) { return 16; }
}
return -1;
}

 

Edited by Kortes
Link to comment
Share on other sites

13 odpovědí na tuto otázku

Recommended Posts

  • 0

To je zajímavé, kolik lidí má tento problém. Někdo Paradise World dostal, někdo ho koupil...

Každopádně potřebuješ toto: (dej to někam nahoru do módu, kde vytváříš ostatní proměnné)

 

 

new spoiler[20][0] = {
	{1000},
	{1001},
	{1002},
	{1003},
	{1014},
	{1015},
	{1016},
	{1023},
	{1058},
	{1060},
	{1049},
	{1050},
	{1138},
	{1139},
	{1146},
	{1147},
	{1158},
	{1162},
	{1163},
	{1164}
};
 
new nitro[3][0] = {
    {1008},
    {1009},
    {1010}
};
 
new fbumper[23][0] = {
    {1117},
    {1152},
    {1153},
    {1155},
    {1157},
    {1160},
    {1165},
    {1167},
    {1169},
    {1170},
    {1171},
    {1172},
    {1173},
    {1174},
    {1175},
    {1179},
    {1181},
    {1182},
    {1185},
    {1188},
    {1189},
    {1192},
    {1193}
};
 
new rbumper[22][0] = {
    {1140},
    {1141},
    {1148},
    {1149},
    {1150},
    {1151},
    {1154},
    {1156},
    {1159},
    {1161},
    {1166},
    {1168},
    {1176},
    {1177},
    {1178},
    {1180},
    {1183},
    {1184},
    {1186},
    {1187},
    {1190},
    {1191}
};
 
new exhaust[28][0] = {
    {1018},
    {1019},
    {1020},
    {1021},
    {1022},
    {1028},
    {1029},
    {1037},
    {1043},
    {1044},
    {1045},
    {1046},
    {1059},
    {1064},
    {1065},
    {1066},
    {1089},
    {1092},
    {1104},
    {1105},
    {1113},
    {1114},
    {1126},
    {1127},
    {1129},
    {1132},
    {1135},
    {1136}
};
 
new bventr[2][0] = {
    {1142},
    {1144}
};
 
new bventl[2][0] = {
    {1143},
    {1145}
};
 
new bscoop[4][0] = {
	{1004},
	{1005},
	{1011},
	{1012}
};
 
new rscoop[17][0] = {
    {1006},
    {1032},
    {1033},
    {1035},
    {1038},
    {1053},
    {1054},
    {1055},
    {1061},
    {1067},
    {1068},
    {1088},
    {1091},
    {1103},
    {1128},
    {1130},
    {1131}
};
 
new lskirt[21][0] = {
    {1007},
    {1026},
    {1031},
    {1036},
    {1039},
    {1042},
    {1047},
    {1048},
    {1056},
    {1057},
    {1069},
    {1070},
    {1090},
    {1093},
    {1106},
    {1108},
    {1118},
    {1119},
    {1133},
    {1122},
    {1134}
};
 
new rskirt[21][0] = {
    {1017},
    {1027},
    {1030},
    {1040},
    {1041},
    {1051},
    {1052},
    {1062},
    {1063},
    {1071},
    {1072},
    {1094},
    {1095},
    {1099},
    {1101},
    {1102},
    {1107},
    {1120},
    {1121},
    {1124},
    {1137}
};
 
new hydraulics[1][0] = {
    {1087}
};
 
new base[1][0] = {
    {1086}
};
 
new rbbars[4][0] = {
    {1109},
    {1110},
    {1123},
    {1125}
};
 
new fbbars[2][0] = {
    {1115},
    {1116}
};
 
new wheels[17][0] = {
    {1025},
    {1073},
    {1074},
    {1075},
    {1076},
    {1077},
    {1078},
    {1079},
    {1080},
    {1081},
    {1082},
    {1083},
    {1084},
    {1085},
    {1096},
    {1097},
    {1098}
};
 
new lights[2][0] = {
	{1013},
	{1024}
}; 

 

 

 

Další věc, která bude následovat, je to, že ti mód nepůjde spustit, podle mě kvůli npcčkám, které ti určitě nikdo při koupi módu nedal... (A když se optáš, tak je nikdo nebude mít :d ) :(

Takže smůla mód nerozjedeš. :(

Link to comment
Share on other sites

  • 0

Toto jsem slyšel uz moc krát,i kdyby si to v pawne udelal, tak mod nerozjedeš bez NPC ktere asi nemáš :d

 

 

//EDIT :  Jinak sorry gargoyles nevidel sem ze uz si napsal ze by mu to bez NPC nemelo jít :d

Edited by DvaDva
Link to comment
Share on other sites

  • 0

Já nepotřebuji žádné NPC já potřebuju vyřešit ten error lidi ..NPC jsou mi teď uplně fuk :d A i kdyby tak ty NPC tam jsou jenom na test autor to nedodělal a nejsou vubec duležité pro chod modu :)

Edited by Kortes
Link to comment
Share on other sites

  • 0

Však už jsem ti psal, jak to opravit.... :d

Jinak v módu je nějaký další problém a předpokládám, že to jsou NPC (usuzuji podle toho, že při spuštění samp-server snaží spustit i samp-npc) - ovšem jistotu nemám :d, bohužel autor toho módu to neošetřil, takže nevíš co děláš špatně.

Edited by GaRGoyLeS
Link to comment
Share on other sites

  • 0

Bohužel opět errory....

 

(730) : error 020: invalid symbol name ""
(7418) : error 029: invalid expression, assumed zero
(7418) : error 029: invalid expression, assumed zero
(7418) : warning 215: expression has no effect
(7418) : error 001: expected token: ";", but found "]"
(7418) : fatal error 107: too many error messages on one line

 

 

Kod: 

 

(730) : new spoiler[20][0] = {

(7418):  for(i=0; i<3; i++)

 

 

 

Link to comment
Share on other sites

  • 0

 

stock InitComponents(componentid)
{
new i;
for(i=0; i<20; i++)
{
if(spoiler[0] == componentid) return 0; }

 

 

//tuning//
new spoiler[20][0] = {
{1000},
{1001},
{1002},
{1003},
{1014},
{1015},
{1016},
{1023},
{1058},
{1060},
{1049},
{1050},
{1138},
{1139},
{1146},
{1147},
{1158},
{1162},
{1163},
{1164}
};
 

Link to comment
Share on other sites

  • 0

A to mam dát kam? však to tam už je :d

 

for(i=0; i<3; i++)
{
if(nitro[0] == componentid) { return 1; }
}

 

Toto potřebuji opravit.. :d

for(i=0; i<20; i++)

{
if(spoiler[0] == componentid) return 0; }
}

 

Edited by Kortes
Link to comment
Share on other sites

  • 0

No ty jsi mi na tu chybu pokaždé poslal jinačí kód :d Ty už jsi v tom módu dělal něco jiného kromě tohohle? Kdyžtak ti pošlu ten fungující...

Podle mě jsi to akorát někam špatně vložil, do součásti nějakých proměnných nebo nějaké fce.

Edited by GaRGoyLeS
Link to comment
Share on other sites

  • 0

Pošli mě do PM  fungujici kod :d Já se v tom sám moc nevyznám btw nic jsem v modu nedělal :d


Tady je celý kod tedy

stock InitComponents(componentid)

{
new i;
for(i=0; i<20; i++)
{
if(spoiler[0] == componentid) return 0; }
}
for(i=0; i<3; i++)
{
if(nitro[0] == componentid) { return 1; }
}
for(i=0; i<23; i++)
{
if(fbumper[0] == componentid) { return 2; }
}
for(i=0; i<22; i++)
{
if(rbumper[0] == componentid) { return 3; }
}
for(i=0; i<28; i++)
{
if(exhaust[0] == componentid) { return 4; }
}
for(i=0; i<2; i++)
{
if(bventr[0] == componentid) { return 5; }
}
for(i=0; i<2; i++)
{
if(bventl[0] == componentid) { return 6; }
}
for(i=0; i<4; i++)
{
if(bscoop[0] == componentid) { return 7; }
}
for(i=0; i<13; i++)
{
if(rscoop[0] == componentid) { return 8; }
}
for(i=0; i<21; i++)
{
if(lskirt[0] == componentid) { return 9; }
}
for(i=0; i<21; i++)
{
if(rskirt[0] == componentid) { return 10; }
}
if(hydraulics[0][0] == componentid) { return 11; }
if(base[0][0] == componentid) { return 12; }
for(i=0; i<2; i++)
{
if(rbbars[0] == componentid) { return 13; }
}
for(i=0; i<2; i++)
{
if(fbbars[0] == componentid) { return 14; }
}
for(i=0; i<17; i++)
{
if(wheels[0] == componentid) { return 15; }
}
for(i=0; i<2; i++)
{
if(lightss[0] == componentid) { return 16; }
}
return -1;
}

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...