Utils problem .
- Russiasteve
- Geschlossen
- Erledigt
Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!
Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
-
-
#include <utils> oben zu deinen includes
-
hab ich
-
dann brauchst du unter dein server ordern/pawno/includes utils.inc
-
Also ich hab das so gemacht
ich bin auf mein server gegangen
dann auf PAWNO
dann auf INCLUDE
und dort hab ich die utils.inc reingetan -
Wennde dann im Scrupt auch
#include <utils>
stehen hast, gehts -
-
was hast du fürn Betriebssystem
Bei Vista und Win7: Als Admin ausführen.
Dann müsste es klappen
-
Ich hab win7
aber wie meinst du das mit admin ausführen & was soll ich dami ausführen?
-
Rechtsklick auf Pawno --> Als Administrator ausführen ---> Datei öffnen und compilen
-
hahaa yetzt sind da 26errors und ich weiß nicht wo ich klammer falsch gemacht hab
-
poste mal die Errors
-
pwn(2260) : warning 209: function "PnP_OnPlayerConnect" should return a value
pwn(10046) : error 017: undefined symbol "strtok"
pwn(10046) : error 033: array must be indexed (variable "cmd")
pwn(10946) : error 017: undefined symbol "strtok"
pwn(10946) : error 033: array must be indexed (variable "tmp")
pwn(10985) : error 017: undefined symbol "strtok"
pwn(10985) : error 033: array must be indexed (variable "tmp")
pwn(11027) : error 017: undefined symbol "strtok"
pwn(11027) : error 033: array must be indexed (variable "tmp")
pwn(11035) : error 017: undefined symbol "strtok"
pwn(11035) : error 033: array must be indexed (variable "tmp")
pwn(11110) : error 017: undefined symbol "strtok"
pwn(11110) : error 033: array must be indexed (variable "tmp")
pwn(11441) : error 017: undefined symbol "strtok"
pwn(11441) : error 033: array must be indexed (variable "tmp")
pwn(11474) : error 017: undefined symbol "strtok"
pwn(11474) : error 033: array must be indexed (variable "tmp")
pwn(11630) : error 017: undefined symbol "strtok"
pwn(11630) : error 033: array must be indexed (variable "tmp")
.pwn(11653) : error 017: undefined symbol "strtok"
pwn(11653) : error 033: array must be indexed (variable "tmp")
.pwn(11775) : error 017: undefined symbol "strtok"
pwn(11775) : error 033: array must be indexed (variable "tmp")
pwn(12741) : error 017: undefined symbol "strtok"
pwn(12741) : error 033: array must be indexed (variable "tmp")
pwn(12794) : error 017: undefined symbol "strtok"
pwn(12794) : error 033: array must be indexed (variable "tmp") -
strtok Funktion fehlt dir
strtok(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string[index] <= ' '))
{
index++;
}
new offset = index;
new result[20];
while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index];
index++;
}
result[index - offset] = EOS;
return result;
}einfach ganz nach unten ins Script
-
Hmm hab ich aber yetzt hab ich neues Prob
pwn(1868) : error 004: function "PlayerToPoint" is not implemented
pwn(1872) : error 004: function "PlayerToPoint" is not implemented
pwn(1884) : error 004: function "PlayerToPoint" is not implemented
pwn(1888) : error 004: function "PlayerToPoint" is not implemented
pwn(1892) : error 004: function "PlayerToPoint" is not implemented
pwn(1896) : error 004: function "PlayerToPoint" is not implemented
pwn(1900) : error 004: function "PlayerToPoint" is not implemented
pwn(1904) : error 004: function "PlayerToPoint" is not implemented
pwn(1908) : error 004: function "PlayerToPoint" is not implemented
pwn(1912) : error 004: function "PlayerToPoint" is not implemented
pwn(1916) : error 004: function "PlayerToPoint" is not implemented
pwn(1927) : error 004: function "PlayerToPoint" is not implemented
pwn(1939) : error 004: function "PlayerToPoint" is not implemented
pwn(1943) : error 004: function "PlayerToPoint" is not implemented
pwn(1947) : error 004: function "PlayerToPoint" is not implemented
pwn(1951) : error 004: function "PlayerToPoint" is not implemented
pwn(1955) : error 004: function "PlayerToPoint" is not implemented
pwn(1967) : error 004: function "PlayerToPoint" is not implemented
pwn(1971) : error 004: function "PlayerToPoint" is not implemented
pwn(1975) : error 004: function "PlayerToPoint" is not implemented
pwn(1987) : error 004: function "PlayerToPoint" is not implemented
pwn(1991) : error 004: function "PlayerToPoint" is not implemented
pwn(1995) : error 004: function "PlayerToPoint" is not implemented
pwn(2015) : error 004: function "PlayerCarSpawn" is not implemented
pwn(2026) : error 004: function "Stats" is not implemented
pwn(2050) : error 004: function "OnPlayerCarLogin" is not implementedkann mir einer helfen?
-
du brauchst die include bzw. musst sie wieder in den Script eintragen.
-
was muss ich denn da rein machen? also include?
ich versteh das gerade nicht xDD was soll ich denn für include haben?
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(25.0,playerid,207.5627,-103.7291,1005.2578) || PlayerToPoint(25.0,playerid,203.9068,-41.0728,1001.8047))
{//Binco & Suburban
return 1;
}
else if(PlayerToPoint(30.0,playerid,214.4470,-7.6471,1001.2109) || PlayerToPoint(50.0,playerid,161.3765,-83.8416,1001.8047))
{//Zip & Victim
return 1;
}
}
return 0;
}public IsAtGasStation(playerid)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(6.0,playerid,1004.0070,-939.3102,42.1797) || PlayerToPoint(6.0,playerid,1944.3260,-1772.9254,13.3906))
{//LS
return 1;
}
else if(PlayerToPoint(6.0,playerid,-90.5515,-1169.4578,2.4079) || PlayerToPoint(6.0,playerid,-1609.7958,-2718.2048,48.5391))
{//LS
return 1;
}
else if(PlayerToPoint(6.0,playerid,-2029.4968,156.4366,28.9498) || PlayerToPoint(8.0,playerid,-2408.7590,976.0934,45.4175))
{//SF
return 1;
}
else if(PlayerToPoint(5.0,playerid,-2243.9629,-2560.6477,31.8841) || PlayerToPoint(8.0,playerid,-1676.6323,414.0262,6.9484))
{//Between LS and SF
return 1;
}
else if(PlayerToPoint(6.0,playerid,2202.2349,2474.3494,10.5258) || PlayerToPoint(10.0,playerid,614.9333,1689.7418,6.6968))
{//LV
return 1;
}
else if(PlayerToPoint(8.0,playerid,-1328.8250,2677.2173,49.7665) || PlayerToPoint(6.0,playerid,70.3882,1218.6783,18.5165))
{//LV
return 1;
}
else if(PlayerToPoint(8.0,playerid,2113.7390,920.1079,10.5255) || PlayerToPoint(6.0,playerid,-1327.7218,2678.8723,50.0625))
{//LV
return 1;
}
else if(PlayerToPoint(8.0,playerid,1544.6445,-1607.1504,12.9484) || PlayerToPoint(8.0,playerid,1544.6445,-1607.1504,12.9484))
{//LSPD
return 1;
}
else if(PlayerToPoint(20.0,playerid,1765.6320,-2286.3406,26.7960))
{//LSPD
return 1;
}
}
return 0;
}
public IsAtGasStation2(playerid)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(8.0,playerid,1544.6445,-1607.1504,12.9484))
{//LSPD
return 1;
}
}
return 0;
}public IsAtFishPlace(playerid)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(1.0,playerid,403.8266,-2088.7598,7.8359) || PlayerToPoint(1.0,playerid,398.7553,-2088.7490,7.8359))
{//Fishplace at the bigwheel
return 1;
}
else if(PlayerToPoint(1.0,playerid,396.2197,-2088.6692,7.8359) || PlayerToPoint(1.0,playerid,391.1094,-2088.7976,7.8359))
{//Fishplace at the bigwheel
return 1;
}
else if(PlayerToPoint(1.0,playerid,383.4157,-2088.7849,7.8359) || PlayerToPoint(1.0,playerid,374.9598,-2088.7979,7.8359))
{//Fishplace at the bigwheel
return 1;
}
else if(PlayerToPoint(1.0,playerid,369.8107,-2088.7927,7.8359) || PlayerToPoint(1.0,playerid,367.3637,-2088.7925,7.8359))
{//Fishplace at the bigwheel
return 1;
}
else if(PlayerToPoint(1.0,playerid,362.2244,-2088.7981,7.8359) || PlayerToPoint(1.0,playerid,354.5382,-2088.7979,7.8359))
{//Fishplace at the bigwheel
return 1;
}
}
return 0;
}public IsAtCookPlace(playerid)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(3.0,playerid,369.9786,-4.0798,1001.8589))
{//Cluckin Bell
return 1;
}
else if(PlayerToPoint(3.0,playerid,376.4466,-60.9574,1001.5078) || PlayerToPoint(3.0,playerid,378.1215,-57.4928,1001.5078))
{//Burgershot
return 1;
}
else if(PlayerToPoint(3.0,playerid,374.1185,-113.6361,1001.4922) || PlayerToPoint(3.0,playerid,377.7971,-113.7668,1001.4922))
{//Well Stacked Pizza
return 1;
}
}
return 0;
}public IsAtBar(playerid)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(4.0,playerid,495.7801,-76.0305,998.7578) || PlayerToPoint(4.0,playerid,499.9654,-20.2515,1000.6797) || PlayerToPoint(4.0,playerid,-785.8324,500.0738,1371.7422))
{//In grove street bar (with girlfriend), and in Havanna
return 1;
}
else if(PlayerToPoint(4.0,playerid,1215.9480,-13.3519,1000.9219) || PlayerToPoint(10.0,playerid,-2658.9749,1407.4136,906.2734) || PlayerToPoint(10.0,playerid,1485.7428,-1648.3452,22.4492))
{//PIG Pen
return 1;
}
else if(PlayerToPoint(7.0,playerid,894.8922,-1185.3698,5.6874))
{//funareadas hab ich drinne aber weiß nicht was ich machen soll
hilft mir keiner ?
ich muss das schaffen .... -
breadfish.de
Hat das Thema geschlossen.